RE: session expiry

2003-07-09 Thread Tom Drake
The servlet specification is a good source of such information. -Original Message- From: Paul Wallace [mailto:[EMAIL PROTECTED] Sent: Tuesday, July 08, 2003 5:11 AM To: [EMAIL PROTECTED] Subject: session expiry Hello All, A simple one? I have my session defined in a servlet thus

Re: session expiry

2003-07-08 Thread Tim Funk
See the servlet specification from java.sun.com. In particular, session expiration can be set in web.xml. sessions can also be expired programmatically via its invalidate() method. Please followup with tomcat-user if you have more questions. This forum is for changing the internals of tomcat.

session expiry

2003-07-08 Thread Paul Wallace
Hello All, A simple one? I have my session defined in a servlet thus: HttpSession session = req.getSession(); session.setAttribute("userSession", h); // (h = HashMap) how or where do define session parameters such as expiry? I would ideally like my session to die when I call a spec

Re: StandardManager : Session expiry thread.

2001-09-14 Thread Craig R. McClanahan
On Fri, 14 Sep 2001, David Lecomber wrote: > Date: Fri, 14 Sep 2001 17:21:06 +0100 > From: David Lecomber <[EMAIL PROTECTED]> > Reply-To: [EMAIL PROTECTED], [EMAIL PROTECTED] > To: [EMAIL PROTECTED] > Subject: StandardManager : Session expiry thread. > > [tomcat 4.0

StandardManager : Session expiry thread.

2001-09-14 Thread David Lecomber
[tomcat 4.0-rc2] It's possible for the session expiring thread to not catch an exception - thrown within session.expire - which then stops this thread and means all other sessions are not expired (forever!) at org.apache.catalina.session.StandardSession.removeAttribute(StandardSession.ja

Session-expiry bug v2.0

2001-02-14 Thread Murthy Gorty
Hi, I posted a question last week about this and I'm including the conclusions of that posting anticipating more responses.. :-) I'm using tomcat 3.2.1 final release. Tomcat's check for Session Expiry happens in a background thread (StandardManager::processExpire

Re: Session-expiry bug? getLastAccessedTime

2001-02-12 Thread Murthy Gorty
) request. And the session-expiry thread looks at the wrong-time. IF getLastAccessedTime() should return the time of (last-1) request, then perhaps there should be another method getAccessedTime() that returns thisAccessedTime in StandardSession and this would be used by the session-expiry thread

Re: Session-expiry bug? getLastAccessedTime

2001-02-11 Thread Murthy Gorty
--- > From: Craig R. McClanahan <[EMAIL PROTECTED]> > To: "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> > Cc: "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> > Subject: Re: Session-expiry bug? getLastAccessedTime > Date: Sat, 10 Feb 2001 12:52:24 -0800> >

Re: Session-expiry bug? getLastAccessedTime

2001-02-11 Thread Kief Morris
Craig R. McClanahan typed the following on 12:52 PM 2/10/2001 -0800 >This was discussed by the expert group for servlet 2.3, and Kief's >understanding is what we came up with. In addition, that is what Section 7.6 >says in 2.3 PFD (emphasis is added): > >The getLastAccessedTime method of the

Re: Session-expiry bug? getLastAccessedTime

2001-02-10 Thread Craig R. McClanahan
Kief Morris wrote: > Murthy Gorty typed the following on 09:59 AM 2/9/2001 -0800 > >I noticed a problem with session timeouts in Tomcat3.2.1 > >The background thread that recycles sessions based on timeouts uses > >Session.getLastAccessedTime(). > >The session object itself has two variables > >l

Re: Session-expiry bug? getLastAccessedTime

2001-02-10 Thread Kief Morris
Murthy Gorty typed the following on 09:59 AM 2/9/2001 -0800 >I noticed a problem with session timeouts in Tomcat3.2.1 >The background thread that recycles sessions based on timeouts uses >Session.getLastAccessedTime(). >The session object itself has two variables >lastAccessedTime and thisAccesse

Session-expiry bug? getLastAccessedTime

2001-02-09 Thread Murthy Gorty
Hi, I noticed a problem with session timeouts in Tomcat3.2.1 The background thread that recycles sessions based on timeouts uses Session.getLastAccessedTime(). The session object itself has two variables lastAccessedTime and thisAccessedTime. - public