tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Paul Wallace" <pwall...@intelematics.com.au>
Subject session expiry
Date Tue, 08 Jul 2003 12:11:06 GMT
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.


Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message