you can set timeout from Tomcat Admin => Connections.
--- David Causse <[EMAIL PROTECTED]> wrote:
> Hi,
>
> I need in some exceptionnal condition to disable the
> session timeout for
> one request.
> Is there some convenient way to do so?
>
> My idea is to do this but I'm unsure :
> In the exceptionnal servlet (at the beginning):
> session.setAttribute("OLD_TIMEOUT", new
> Integer(session.getMaxInactiveInterval()));
> session.setMaxInactiveInterval(-1);
>
> In my filter:
> Integer oldTimeout = (Integer)
> session.getAttribute("OLD_TIMEOUT");
> if(oldTimeout != null) {
>
>
session.setMaxInactiveInterval(oldTimeout.intValue());
> }
>
> What do you think about this method is it
> safe/working?
> Maybe there is a way to do it with session listeners
> (by cancelling the
> call to invalidate, I don't know if it is possible).
>
> Thank you.
>
> David.
>
>
>
---------------------------------------------------------------------
> To unsubscribe, e-mail:
> [EMAIL PROTECTED]
> For additional commands, e-mail:
> [EMAIL PROTECTED]
>
>
-Ted
__________________________________
Yahoo! Messenger
Show us what our next emoticon should look like. Join the fun.
http://www.advision.webevents.yahoo.com/emoticontest
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]