"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.

How about:

     HttpSession sess;
     sess = response.getSession();
     sess.setMaxInactiveInterval(100);

cc


begin:vcard
n:Cobb;Christopher
tel;cell:703-909-7550
tel;fax:703-648-7475
tel;work:703-648-6725
x-mozilla-html:TRUE
org:Powerhouse Technologies, Inc.
adr:;;;;;;
version:2.1
email;internet:[EMAIL PROTECTED]
title:SW Architect
fn:Christopher Cobb
end:vcard

Reply via email to