Contents | Package | Class | Tree | Deprecated | Index | Help Java 1.2 Beta 3
PREV | NEXT SHOW LISTS | HIDE LISTS

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 Summary
Enumeration  getIds()
Returns an enumeration of all of the session IDs in this context.
HttpSession  getSession(String sessionId)
Returns the session bound to the specified session ID.
 

Method Detail

getSession

public 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.

getIds

public Enumeration getIds()
Returns an enumeration of all of the session IDs in this context.
Returns:
an enumeration of all session IDs in this context

Contents | Package | Class | Tree | Deprecated | Index | Help Java 1.2 Beta 3
PREV | NEXT SHOW LISTS | HIDE LISTS

Submit a bug or feature
Submit comments/suggestions about new javadoc look.
Java is a trademark or registered trademark of Sun Microsystems, Inc. in the US and other countries.
Copyright 1993-1998 Sun Microsystems, Inc. 901 San Antonio Road, Palo Alto, California, 94303, U.S.A. All Rights Reserved.