"Kirkdorffer, Daniel" wrote:
> Here's another wish list item:
>
> I'd like to be able to manage the invalidation timeout at the time of
> creation of my session objects. I.e. do something like this:
>
> HttpSession browserSession = req.getSession(true, 900000);
>
> to create a session object that will invalidate itself after 15 minutes of
> inactivity. Different systems might want different timeouts, and we can
> only set this at the servlet engine level, which affects all systems that
> run against that web server.
>
> It would seem to be something that's too hard to add.
>
> Dan
Not hard to add at all ...
HttpSession.setMaxInactiveInterval() (2.1 API) lets you manage the inactivity
timeout on a per-session basis. Just call it after the session has been
created for you.
>
> --
> Daniel Kirkdorffer
> NACN IS: 425-580-6225
> Sr. Consultant, Syllogistics LLC
> Email: [EMAIL PROTECTED]
> Web: http://www.syllogistics.com/
>
Craig
===========================================================================
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff JSP-INTEREST". For general help, send email to
[EMAIL PROTECTED] and include in the body of the message "help".