Merwin Yap wrote:
> 
>   ------------------------------------------------------------------------
> 
> Subject: Session expiration...
> Date: Sat, 03 Feb 2001 16:18:38 +0800
> From: Merwin Yap <[EMAIL PROTECTED]>
> To: [EMAIL PROTECTED]
> 
> Hi! I want to ask about sessions in tomcat. How do you change the
> elapsed time for the session to expire.
> 
> Thanks!
> 
> Merwin
> 

There are two ways that I know of, runtime and init time.

During runtime you can change the session "timeout" by getting a session
object from you request and using the setMaxInactiveInterval() method
with the proper parameters.

Check the HttpSession Interface  under the javax.servlet.http package.

During Init time or initialization, it's just a couple of XML statements
in your web.xml I believe you can find the definitions under the web.dtd
file... 

Hope that helps.

Cheers,


John Clark

-- 
     /) John Clark Naldoza y Lopez                           (\
    / )    Software Design Engineer II                       ( \
  _( (_    _  Web-Application Development                    _) )_
 (((\ \>  /_>    Cable Modem Network Management System <_\  </ /)))
 (\\\\ \_/ /         NEC Telecom Software Phils., Inc.  \ \_/ ////)
  \       /                                              \       /
   \    _/  phone: (+63 32) 233-9142 loc. 3112            \_    /
   /   /  cellphone: (+63 919) 241-4612                     \   \
  /   / email: [EMAIL PROTECTED]                        \   \

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]

Reply via email to