HttpSession Class

No description available.

Constructors

There are no public constructors.

Public Methods

getServletContext( ) returns ServletContext
Returns the ServletContext.
getID( ) returns String
Returns a string containing the unique identifier assigned to this session.
getCreationTime( ) returns long
Returns the time when this session was created, measured in milliseconds since midnight January 1, 1970 GMT.
getLastAccessedTime( ) returns long
Returns the time when this session was last accessed, measured in milliseconds since midnight January 1, 1970 GMT.
isNew( ) returns boolean
Returns true if the client does not yet know about the session or if the server has not accessed the session.
getAttribute( String name ) returns Object
Returns the object bound with the specified name in this session, or null if no object is bound under the name.
setAttribute( String name, Object value ) returns void
Binds an object to this session, using the name specified.
removeAttribute( String name ) returns void
Removes the attribute with the given name from the servlet context.
invalidate( ) returns void
Invalidates this session then unbinds any objects bound to it.
toString( ) returns String