All Packages  Class Hierarchy  This Package  Previous  Next  Index

Interface javax.servlet.http.HttpSessionContext

public interface HttpSessionContext
A HttpSessionContext is a grouping of HttpSessions associated with a single entity. This interface gives servlets access to methods for listing the IDs and for retrieving a session based on its ID.

Servlets get the HttpSessionContext object by calling the getSessionContext() method of HttpSession.

See Also:
HttpSession

Method Index

 o getIds()
Returns an enumeration of all of the session IDs in this context.
 o getSession(String)
Returns the session bound to the specified session ID.

Methods

 o getSession
 public abstract HttpSession getSession(String sessionId)
Returns the session bound to the specified session ID.

Parameters:
sessionID - the ID of a particular session object
Returns:
the session name. Returns null if the session ID does not refer to a valid session.
 o getIds
 public abstract Enumeration getIds()
Returns an enumeration of all of the session IDs in this context.

Returns:
an enumeration of all session IDs in this context

All Packages  Class Hierarchy  This Package  Previous  Next  Index