tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Tom Drake <Tom.Dr...@tavant.com>
Subject RE: session expiry
Date Tue, 08 Jul 2003 18:51:58 GMT
The servlet specification is a good source of such information. 

-----Original Message-----
From: Paul Wallace [mailto:pwallace@intelematics.com.au]
Sent: Tuesday, July 08, 2003 5:11 AM
To: tomcat-dev@jakarta.apache.org
Subject: session expiry


Hello All,

    A simple one? I have my session defined in a servlet thus:

 

 

HttpSession session = req.getSession();

session.setAttribute("userSession", h); // (h = HashMap)

 

how or where do define session parameters such as expiry? I would
ideally like my session to die when I call a specified method e.g 

 

close() {

 

      // kill my session here

 

} 

or failing that, how do I define a length of time for the session life?

 

Thanks

 

Paul.


---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-dev-help@jakarta.apache.org


Mime
View raw message