You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Siddhartha Purkayastha <kp...@gmail.com> on 2009/04/06 18:32:14 UTC
Having variable session timeouts
Hello All -
How is it possible to implement variable session timeouts?
My use case is: for a set of users with certain properties (which in turn
will be stored in the session, say x = 10), I want to have a time out of 30
mins. For others (say with property x = 15), I want to have a timeout of 1
hr.
Is it possible to achieve such a configuration?
Thanks,
Siddhartha
Re: Having variable session timeouts
Posted by Christopher Schultz <ch...@christopherschultz.net>.
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Siddhartha,
On 4/6/2009 1:50 PM, Siddhartha Purkayastha wrote:
> Looks like this should solve my problem -
> HttpSession.setMaxInactiveInterval() ?
That sounds like a good start.
> Are there any implications of using this method?
Yes: the session that you call this on will have the inactive timeout
that you specify in the method call.
- -chris
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/
iEYEARECAAYFAknadHEACgkQ9CaO5/Lv0PBaiACfcG1u1eFgsXyvqyCSwiQtlPGa
twcAoII7f1RNKdPgi9q1W9WpO11BE2ds
=qx9J
-----END PGP SIGNATURE-----
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org
Re: Having variable session timeouts
Posted by Siddhartha Purkayastha <kp...@gmail.com>.
Looks like this should solve my problem -
HttpSession.setMaxInactiveInterval() ?
Are there any implications of using this method?
2009/4/6 Siddhartha Purkayastha <kp...@gmail.com>
> Hello All -
>
> How is it possible to implement variable session timeouts?
> My use case is: for a set of users with certain properties (which in turn
> will be stored in the session, say x = 10), I want to have a time out of 30
> mins. For others (say with property x = 15), I want to have a timeout of 1
> hr.
>
> Is it possible to achieve such a configuration?
>
> Thanks,
> Siddhartha
>