<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">Nom de la variable&nbsp;:</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">Nom de l'interface&nbsp;:</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">Etend&nbsp;:</td>
</tr>
<tr>
<td colspan="2" class="description">

<p>Aucun</p>

</td>
</tr>
<tr>
<td colspan="2" class="CLEARSEPARATION">&nbsp;</td>
</tr>
<tr>
<td colspan="2" class="TITLE">Impl&eacute;ment&eacute;e par&nbsp;:</td>
</tr>
<tr>
<td colspan="2" class="description">

<p>Classe interne d&eacute;pendante du container</p>

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

<p>Disponible aussi bien dans les pages JSP normales que dans les pages d'erreur, sauf si l'attribut <span class="LITERAL">session</span> de la directive <span class="LITERAL">page</span> est d&eacute;fini sur <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>La variable <span class="LITERAL">session</span> se voit affect&eacute;e une r&eacute;f&eacute;rence &agrave; l'objet <span class="LITERAL">HttpSession</span> qui repr&eacute;sente la session client actuelle. Les informations stock&eacute;es comme attributs <span class="LITERAL">HttpSession</span> correspondent aux objets de l'&eacute;tendue de session JSP.
</p>

<p>Par d&eacute;faut, la session reste valide tout le temps de la p&eacute;riode sp&eacute;cifi&eacute;e dans le descripteur de d&eacute;ploiement de l'application web, pour toutes les demandes de page effectu&eacute;es par l'utilisateur. Le container peut maintenir une session de diff&eacute;rentes mani&egrave;res, par exemple en utilisant des cookies ou en corrigeant les URL.
</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>
Renvoie l'attribut <span class="LITERAL">Object</span> associ&eacute; au nom sp&eacute;cifi&eacute; dans cette session, ou bien la valeur <span class="LITERAL">null</span> si l'objet est introuvable.
</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>
Renvoie une <span class="LITERAL">Enumeration</span> d'objets <span class="LITERAL">String</span> contenant les noms de tous les objets de cette 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>
Renvoie la date &agrave; laquelle cette session a &eacute;t&eacute; cr&eacute;&eacute;e, mesur&eacute;e en millisecondes depuis l'&eacute;poque ( 1er janvier 1970, 00:00:00 TMG).
</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>
Renvoie une <span class="LITERAL">String</span> contenant l'identificateur unique affect&eacute; &agrave; cette 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>
Renvoie la derni&egrave;re date &agrave; laquelle le client a envoy&eacute; une demande associ&eacute;e &agrave; cette session sous forme de millisecondes depuis l'&eacute;poque (1er janvier 1970, 00:00:00 TMG).
</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>
Renvoie l'intervalle de temps maximum, en secondes, o&ugrave; le container de servlet conservera cette session active entre deux acc&egrave;s du client.
</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>
Invalide cette session et dissocie tous les objets qui lui sont li&eacute;s en appelant les m&eacute;thodes <span class="LITERAL">valueUnbound()</span> de tous les objets de la session qui impl&eacute;mentent l'interface <span class="LITERAL">HttpSessionBindingListener</span>.
</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>
Renvoie la valeur <span class="LITERAL">true</span> si une demande de cette session n'a pas encore &eacute;t&eacute; re&ccedil;ue du 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>
Supprime l'objet li&eacute; au nom sp&eacute;cifi&eacute; de cette 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>
Associe l'objet sp&eacute;cifi&eacute; &agrave; cette session au moyen du nom sp&eacute;cifi&eacute;.
</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>
Sp&eacute;cifie le d&eacute;lai, en secondes, pouvant s'&eacute;couler entre deux demandes du client avant que le container de servlet n'invalide cette 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">D&eacute;conseill&eacute;</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>
Depuis l'API Servlet 2.1, il n'est pas conseill&eacute; d'utiliser cette m&eacute;thode qui n'a d'ailleurs pas encore &eacute;t&eacute; remplac&eacute;e.
</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">D&eacute;conseill&eacute;</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>
Depuis l'API Servlet 2.2, cette m&eacute;thode a &eacute;t&eacute; remplac&eacute;e par <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">D&eacute;conseill&eacute;</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>
Depuis l'API Servlet 2.2, cette m&eacute;thode a &eacute;t&eacute; remplac&eacute;e par <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">D&eacute;conseill&eacute;</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>
Depuis l'API Servlet 2.2, cette m&eacute;thode a &eacute;t&eacute; remplac&eacute;e par <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">D&eacute;conseill&eacute;</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>
Depuis l'API Servlet 2.2, cette m&eacute;thode a &eacute;t&eacute; remplac&eacute;e par <span class="LITERAL">setAttribute(String, Object)</span>.
</p></td>
</tr>
</table>
</div>
</body>
</html>
