The Session object is an ObjectDictionary that you can use to store information needed for a particular user-session. Variables stored in the Session object are not discarded when the user jumps between pages in the application; instead, these variables persist for the entire user-session.
The Web server automatically creates a Session object when a Web page from the application is requested by a user who does not already have a session. The server destroys the Session object when the session expires or is abandoned.
One common use for the Session object is to store user preferences set on a previous visit to the Web application, such as high, medium, or low graphics.
Note Session state is only maintained for browsers that support cookies.
public ObjectDictionary staticObjects;}
public String getSessionID();
public int getTimeout();
public void setTimeout(int timeout);
public int getLCID();
public void setLCID(int lcid);
public int getCodePage();
public void setCodePage(int cp);
public void abandon();
Session Properties
public ObjectDictionary staticObjects
Contains all of the objects created with the <OBJECT> tag and given session scope.
Session Methods
Returns the session identification for this user.
public int getTimeout( )
public void setTimeout(int timeout)
Provides the timeout period for the application's session state, in minutes.
public int getLCID( )
public void setLCID(int lcid)
Identifies locales.
public int getCodePage( )
public void setCodePage(int cp)
Maps symbols.
Destroys a Session object and releases its resources.