Difference between version and version      View first change»»

Back to SessionListener, or SessionListener version history

At line 9 changed 1 line.
If you also want to hear about changes to sessions, see [Session Attribute Listener]. Both of these interfaces can be implemented in the same class, to create a listener which is notified about create, destroy and change events.
If you also want to hear about changes to sessions, see [Session Attribute Listener]. Both of these interfaces can be implemented in the same class, to create a single listener which is notified about create, destroy and change events.
At line 15 changed 1 line.
To create a Session Listener, create a class which implements the [HttpSessionListener|http://java.sun.com/j2ee/sdk_1.3/techdocs/api/javax/servlet/http/HttpSessionListener.html] interface.
To create a Session Listener, create a class which implements the [HttpSessionListener|http://java.sun.com/products/servlet/2.3/javadoc/javax/servlet/http/HttpSessionListener.html] interface.
At line 24 added 2 lines.
Each listener class must also have a public constructor taking no arguments.
At line 32 changed 1 line.
![HttpSession|http://java.sun.com/j2ee/sdk_1.3/techdocs/api/javax/servlet/http/HttpSession.htm]
![HttpSession|http://java.sun.com/products/servlet/2.3/javadoc/javax/servlet/http/HttpSession.htm]
At line 34 changed 1 line.
The session is passed to both of the above methods in the [HttpSessionEvent|http://java.sun.com/j2ee/sdk_1.3/techdocs/api/javax/servlet/http/HttpSessionEvent.htm] object.
The session is passed to both of the above methods in the [HttpSessionEvent|http://java.sun.com/products/servlet/2.3/javadoc/javax/servlet/http/HttpSessionEvent.htm] object.
At line 52 added 3 lines.
public MySessionListener() {
}
At line 88 changed 1 line.
!See Also
!Other Listener Examples
At line 91 removed 3 lines.
* [HttpSessionListener|http://java.sun.com/j2ee/sdk_1.3/techdocs/api/javax/servlet/http/HttpSessionListener.html] Java Docs at Sun
* [HttpSessionEvent|http://java.sun.com/j2ee/sdk_1.3/techdocs/api/javax/servlet/http/HttpSessionEvent.htm] Java Docs at Sun
* [HttpSession|http://java.sun.com/j2ee/sdk_1.3/techdocs/api/javax/servlet/http/HttpSession.htm] Java Docs at Sun
navigation
metawerx specific
search
Share
tools
help

referring pages

Share