>From what you describe it seems as though Tomcat is checking for timeouts only every minute or so, and then everything that "timed-out" in the last minute is expired simultaneously.
I think at this stage it might be better to take this question to the Tomcat mailing list... > -----Original Message----- > From: randie ursal [SMTP:[EMAIL PROTECTED]] > Sent: 11 September 2002 10:13 > To: [EMAIL PROTECTED] > Subject: Re: session timeout question > > hi guys, > > i tried to investigate this behavior to find out what went wrong and > i've come up with > this information...when i open 2 browsers with difference of less than > 1 minute on each > opening there session will both expire at the same time. > > while if i open 2 browser with difference of more that a minute on > each opening the > behavior seems fine...the first browser will timeout first then the > second will follow > depending on the time the second browser was invoke which should be > more than 1 minute. > > by the way i'm using Tomcat 4.0 and jdk1.3.1 > > is this the behavior of Tomcat?..or part of its specification? > > could someone enlighten me on this. > > thanks a lot. =) > > randie ursal wrote: > > > yes, it's really strange....i thought every session have there own > context which means > if one has expired it won't affect the other..right? > > actually i get the session id of every browser i open an it showed > unique id for each..since > i opened each browser from IE shortcut icon. > > the only thing that puzzled me is that when the other session has > timeout the other would do the > same....i can say this because i set an attribute that implements > session listener and when session > timeout all session id are displayed as invalidated. > > hope someone has an idea on this. > > Vikramjit Singh wrote: > > > -----Original Message----- > From: randie ursal [ > <mailto:[EMAIL PROTECTED]>] > Sent: Tuesday, September 10, 2002 1:30 AM > To: [EMAIL PROTECTED] > <mailto:[EMAIL PROTECTED]> > Subject: session timeout question > > > hi, > > could somebody explain to me what possibly went > wrong about my > application. > > what i did was, i set the maxInactiveIinterval > time for > 30 secs. on > my servlet then i added > to my HttpSession object an object that > implements > HttpSessionBindingListener so that i can > keep track and see what happen when session > expires. this scenario > works fine, my session > was invalidated after session timeout and the > sessionlistener was > notified. > > my problem is when i access my web application > by using > two browsers > and let the > 1st browser remain idle until session expires. > the 2nd browser > session also expires > when 1st browser session expires > > i can say this because it put a trace line on > valueUnbound of the > sessionlistener object > and two session id were displayed this was the > session of > both browser. > > > > Thats strange. Coz a new browser which you open, shall have > associcated with > it a new session. > > > > what went wrong with this? > > thanks a lot > randie > > > > -- It is the strict policy of Truworths that its e-mail facility and all e-mail communications emanating therefrom, should be utilised for business purposes only and should conform to high professional and business standards. Truworths has stipulated certain regulations in terms whereof strict guidelines relating to the use and content of e-mail communications are laid down. The use of the Truworths e-mail facility is not permitted for the distribution of chain letters or offensive mail of any nature whatsoever. Truworths hereby distances itself from and accepts no liability in respect of the unauthorised use of its e-mail facility or the sending of e-mail communications for other than strictly business purposes. Truworths furthermore disclaims liability for any unauthorised instruction for which permission was not granted. Truworths Limited accepts no liability for any consequences arising from or as a result of reliance on this message unless it is in respect of bona fide Truworths business for which proper authorisation has been granted. Any recipient of an unacceptable communication, a chain letter or offensive material of any nature is requested to notify the Truworths e-mail administrator ([EMAIL PROTECTED]) immediately in order that appropriate action can be taken against the individual concerned. ___________________________________________________________________________ To unsubscribe, send email to [EMAIL PROTECTED] and include in the body of the message "signoff SERVLET-INTEREST". Archives: http://archives.java.sun.com/archives/servlet-interest.html Resources: http://java.sun.com/products/servlet/external-resources.html LISTSERV Help: http://www.lsoft.com/manuals/user/user.html