<html>
<head>
<title>session</title>
</head>
<body bgcolor="#FFFFFF" text="#000000">
<div id="Description">
<table cellpadding="0" cellspacing="0" border="0" width="100%" class="main">
<tr>
<td valign="top" class="NAME">session</td>
<td valign="top" class="COMPATIBILITY">&nbsp;</td>
</tr>
<tr>
<td colspan="2" class="divider"><img src="dwres:18084" width="100%" height="1"></td>
</tr>
<tr>
<td colspan="2" class="CLEARSEPARATION">&nbsp;</td>
</tr>
<tr>
<td colspan="2" class="TITLE">Variable name:</td>
</tr>
<tr>
<td colspan="2" class="description">

<p><span class="LITERAL">session</span></p>

</td>
</tr>
<tr>
<td colspan="2" class="CLEARSEPARATION">&nbsp;</td>
</tr>
<tr>
<td colspan="2" class="TITLE">Interface name:</td>
</tr>
<tr>
<td colspan="2" class="description">

<p><span class="LITERAL">javax.servlet.http.HttpSession</span></p>

</td>
</tr>
<tr>
<td colspan="2" class="CLEARSEPARATION">&nbsp;</td>
</tr>
<tr>
<td colspan="2" class="TITLE">Extends:</td>
</tr>
<tr>
<td colspan="2" class="description">

<p>None</p>

</td>
</tr>
<tr>
<td colspan="2" class="CLEARSEPARATION">&nbsp;</td>
</tr>
<tr>
<td colspan="2" class="TITLE">Implemented by:</td>
</tr>
<tr>
<td colspan="2" class="description">

<p>Internal container-dependent class</p>

</td>
</tr>
<tr>
<td colspan="2" class="CLEARSEPARATION">&nbsp;</td>
</tr>
<tr>
<td colspan="2" class="TITLE">JSP page type:</td>
</tr>
<tr>
<td colspan="2" class="description">

<p>Available in both regular JSP pages and error pages, unless the
<span class="LITERAL">page</span> directive <span class="LITERAL">session</span>
attribute is set to <span class="LITERAL">false</span>
</p>

</td>
</tr>
<tr>
<td colspan="2" class="CLEARSEPARATION">&nbsp;</td>
</tr>
<tr>
<td colspan="2" class="TITLE">Description</td>
</tr>
<tr>
<td colspan="2" class="description">

<p>The <span class="LITERAL">session</span> variable is assigned a reference to
the <span class="LITERAL">HttpSession</span> object that represents the current
client session. Information stored as <span class="LITERAL">HttpSession</span>
attributes corresponds to objects in the JSP session scope.
</p>

<p>By default, the session persists for the time period specified in the
web application deployment descriptor, across more than one page
request from the user. The container can maintain a session in many
ways, such as using cookies or rewriting URLs.
</p>
</td>
</tr>
</table>
</div>
<div id="getAttribute">
<table cellpadding="0" cellspacing="0" border="0" width="100%" class="main">
<tr>
<td valign="top" class="NAME">getAttribute()</td>
<td valign="top" class="COMPATIBILITY">&nbsp;</td>
</tr>
<tr>
<td colspan="2" class="divider"><img src="dwres:18084" width="100%" height="1"> </td>
</tr>
<tr>
<td valign="top" colspan="2" class="usage"><span class="LITERAL">public Object getAttribute(String name)</span></td>
</tr>
<tr>
<td valign="top" colspan="2" class="description"><p>
Returns the <span class="LITERAL">Object</span> associated with the specified name in this session, or <span class="LITERAL">null</span> if the object is not found.
</p></td>
</tr>
</table>
</div>
<div id="getAttributeNames">
<table cellpadding="0" cellspacing="0" border="0" width="100%" class="main">
<tr>
<td valign="top" class="NAME">getAttributeNames()</td>
<td valign="top" class="COMPATIBILITY">&nbsp;</td>
</tr>
<tr>
<td colspan="2" class="divider"><img src="dwres:18084" width="100%" height="1"> </td>
</tr>
<tr>
<td valign="top" colspan="2" class="usage"><span class="LITERAL">public java.util.Enumeration getAttributeNames()</span></td>
</tr>
<tr>
<td valign="top" colspan="2" class="description"><p>
Returns an <span class="LITERAL">Enumeration</span> of <span class="LITERAL">String</span> objects containing the names of all the objects in this session.
</p></td>
</tr>
</table>
</div>
<div id="getCreationTime">
<table cellpadding="0" cellspacing="0" border="0" width="100%" class="main">
<tr>
<td valign="top" class="NAME">getCreationTime()</td>
<td valign="top" class="COMPATIBILITY">&nbsp;</td>
</tr>
<tr>
<td colspan="2" class="divider"><img src="dwres:18084" width="100%" height="1"> </td>
</tr>
<tr>
<td valign="top" colspan="2" class="usage"><span class="LITERAL">public long getCreationTime()</span></td>
</tr>
<tr>
<td valign="top" colspan="2" class="description"><p>
Returns the time when this session was created, measured in milliseconds since the epoch ( January 1, 1970, 00:00:00 GMT).
</p></td>
</tr>
</table>
</div>
<div id="getId">
<table cellpadding="0" cellspacing="0" border="0" width="100%" class="main">
<tr>
<td valign="top" class="NAME">getId()</td>
<td valign="top" class="COMPATIBILITY">&nbsp;</td>
</tr>
<tr>
<td colspan="2" class="divider"><img src="dwres:18084" width="100%" height="1"> </td>
</tr>
<tr>
<td valign="top" colspan="2" class="usage"><span class="LITERAL">public String getId()</span></td>
</tr>
<tr>
<td valign="top" colspan="2" class="description"><p>
Returns a <span class="LITERAL">String</span> containing the unique identifier assigned to this session.
</p></td>
</tr>
</table>
</div>
<div id="getLastAccessedTime">
<table cellpadding="0" cellspacing="0" border="0" width="100%" class="main">
<tr>
<td valign="top" class="NAME">getLastAccessedTime()</td>
<td valign="top" class="COMPATIBILITY">&nbsp;</td>
</tr>
<tr>
<td colspan="2" class="divider"><img src="dwres:18084" width="100%" height="1"> </td>
</tr>
<tr>
<td valign="top" colspan="2" class="usage"><span class="LITERAL">public long getLastAccessedTime()</span></td>
</tr>
<tr>
<td valign="top" colspan="2" class="description"><p>
Returns the last time the client sent a request associated with this session as the number of milliseconds since the epoch ( January 1, 1970, 00:00:00 GMT).
</p></td>
</tr>
</table>
</div>
<div id="getMaxInactiveInterval">
<table cellpadding="0" cellspacing="0" border="0" width="100%" class="main">
<tr>
<td valign="top" class="NAME">getMaxInactiveInterval()</td>
<td valign="top" class="COMPATIBILITY">&nbsp;</td>
</tr>
<tr>
<td colspan="2" class="divider"><img src="dwres:18084" width="100%" height="1"> </td>
</tr>
<tr>
<td valign="top" colspan="2" class="usage"><span class="LITERAL">public int getMaxInactiveInterval()</span></td>
</tr>
<tr>
<td valign="top" colspan="2" class="description"><p>
Returns the maximum time interval, in seconds, that the servlet container will keep this session active between client accesses.
</p></td>
</tr>
</table>
</div>
<div id="invalidate">
<table cellpadding="0" cellspacing="0" border="0" width="100%" class="main">
<tr>
<td valign="top" class="NAME">invalidate()</td>
<td valign="top" class="COMPATIBILITY">&nbsp;</td>
</tr>
<tr>
<td colspan="2" class="divider"><img src="dwres:18084" width="100%" height="1"> </td>
</tr>
<tr>
<td valign="top" colspan="2" class="usage"><span class="LITERAL">public void invalidate()</span></td>
</tr>
<tr>
<td valign="top" colspan="2" class="description"><p>
Invalidates this session and unbinds any objects bound to it, calling the <span class="LITERAL">valueUnbound()</span> methods of all objects in the session implementing the <span class="LITERAL">HttpSessionBindingListener</span> interface.
</p></td>
</tr>
</table>
</div>
<div id="isNew">
<table cellpadding="0" cellspacing="0" border="0" width="100%" class="main">
<tr>
<td valign="top" class="NAME">isNew()</td>
<td valign="top" class="COMPATIBILITY">&nbsp;</td>
</tr>
<tr>
<td colspan="2" class="divider"><img src="dwres:18084" width="100%" height="1"> </td>
</tr>
<tr>
<td valign="top" colspan="2" class="usage"><span class="LITERAL">public boolean isNew()</span></td>
</tr>
<tr>
<td valign="top" colspan="2" class="description"><p>
Returns <span class="LITERAL">true</span> if a request for this session has not yet been received from the client.
</p></td>
</tr>
</table>
</div>
<div id="removeAttribute">
<table cellpadding="0" cellspacing="0" border="0" width="100%" class="main">
<tr>
<td valign="top" class="NAME">removeAttribute()</td>
<td valign="top" class="COMPATIBILITY">&nbsp;</td>
</tr>
<tr>
<td colspan="2" class="divider"><img src="dwres:18084" width="100%" height="1"> </td>
</tr>
<tr>
<td valign="top" colspan="2" class="usage"><span class="LITERAL">public void removeAttribute(String name)</span></td>
</tr>
<tr>
<td valign="top" colspan="2" class="description"><p>
Removes the object bound with the specified name from this session.
</p></td>
</tr>
</table>
</div>
<div id="setAttribute">
<table cellpadding="0" cellspacing="0" border="0" width="100%" class="main">
<tr>
<td valign="top" class="NAME">setAttribute()</td>
<td valign="top" class="COMPATIBILITY">&nbsp;</td>
</tr>
<tr>
<td colspan="2" class="divider"><img src="dwres:18084" width="100%" height="1"> </td>
</tr>
<tr>
<td valign="top" colspan="2" class="usage"><span class="LITERAL">public void setAttribute(String name, Object attribute)</span></td>
</tr>
<tr>
<td valign="top" colspan="2" class="description"><p>
Associates the specified object with this session using the name specified.
</p></td>
</tr>
</table>
</div>
<div id="setMaxInactiveInterval">
<table cellpadding="0" cellspacing="0" border="0" width="100%" class="main">
<tr>
<td valign="top" class="NAME">setMaxInactiveInterval()</td>
<td valign="top" class="COMPATIBILITY">&nbsp;</td>
</tr>
<tr>
<td colspan="2" class="divider"><img src="dwres:18084" width="100%" height="1"> </td>
</tr>
<tr>
<td valign="top" colspan="2" class="usage"><span class="LITERAL">public void setMaxInactiveInterval(int interval)</span></td>
</tr>
<tr>
<td valign="top" colspan="2" class="description"><p>
Specifies the time, in seconds, that can elapse between client requests before the servlet container will invalidate this session.
</p></td>
</tr>
</table>
</div>


<div id="getSessionContext">
<table cellpadding="0" cellspacing="0" border="0" width="100%" class="main">
<tr>
<td valign="top" class="NAME">getSessionContext()</td>
<td valign="top" class="COMPATIBILITY">Deprecated</td>
</tr>
<tr>
<td colspan="2" class="divider"><img src="dwres:18084" width="100%" height="1"> </td>
</tr>
<tr>
<td valign="top" colspan="2" class="usage"><span class="LITERAL">public HttpSessionContext getSessionContext()</span></td>
</tr>
<tr>
<td valign="top" colspan="2" class="description"><p>
As of the Servlet 2.1 API, this method is deprecated and has no replacement.
</p></td>
</tr>
</table>
</div>
<div id="getValue">
<table cellpadding="0" cellspacing="0" border="0" width="100%" class="main">
<tr>
<td valign="top" class="NAME">getValue()</td>
<td valign="top" class="COMPATIBILITY">Deprecated</td>
</tr>
<tr>
<td colspan="2" class="divider"><img src="dwres:18084" width="100%" height="1"> </td>
</tr>
<tr>
<td valign="top" colspan="2" class="usage"><span class="LITERAL">public Object getValue(String name)</span></td>
</tr>
<tr>
<td valign="top" colspan="2" class="description"><p>
As of the Servlet 2.2 API, this method is replaced by <span class="LITERAL">getAttribute(String)</span>.
</p></td>
</tr>
</table>
</div>
<div id="getValueNames">
<table cellpadding="0" cellspacing="0" border="0" width="100%" class="main">
<tr>
<td valign="top" class="NAME">getValueNames()</td>
<td valign="top" class="COMPATIBILITY">Deprecated</td>
</tr>
<tr>
<td colspan="2" class="divider"><img src="dwres:18084" width="100%" height="1"> </td>
</tr>
<tr>
<td valign="top" colspan="2" class="usage"><span class="LITERAL">public String[] getValueNames()</span></td>
</tr>
<tr>
<td valign="top" colspan="2" class="description"><p>
As of the Servlet 2.2 API, this method is replaced by <span class="LITERAL">getAttributeNames()</span>.
</p></td>
</tr>
</table>
</div>
<div id="putValue">
<table cellpadding="0" cellspacing="0" border="0" width="100%" class="main">
<tr>
<td valign="top" class="NAME">putValue()</td>
<td valign="top" class="COMPATIBILITY">Deprecated</td>
</tr>
<tr>
<td colspan="2" class="divider"><img src="dwres:18084" width="100%" height="1"> </td>
</tr>
<tr>
<td valign="top" colspan="2" class="usage"><span class="LITERAL">public void putValue(String name, Object value)</span></td>
</tr>
<tr>
<td valign="top" colspan="2" class="description"><p>
As of the Servlet 2.2 API, this method is replaced by <span class="LITERAL">setAttribute(String, Object)</span>.
</p></td>
</tr>
</table>
</div>
<div id="removeValue">
<table cellpadding="0" cellspacing="0" border="0" width="100%" class="main">
<tr>
<td valign="top" class="NAME">removeValue()</td>
<td valign="top" class="COMPATIBILITY">Deprecated</td>
</tr>
<tr>
<td colspan="2" class="divider"><img src="dwres:18084" width="100%" height="1"> </td>
</tr>
<tr>
<td valign="top" colspan="2" class="usage"><span class="LITERAL">public void removeValue(String name)</span></td>
</tr>
<tr>
<td valign="top" colspan="2" class="description"><p>
As of the Servlet 2.2 API, this method is replaced by <span class="LITERAL">setAttribute(String, Object)</span>.
</p></td>
</tr>
</table>
</div>
</body>
</html>