You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Nagineni <na...@yahoo.com> on 2009/09/03 07:29:51 UTC

session problem in Tomcat server when system date changes.

Hi,

I'm quite surprise to see this issue in the tomcat server.While running the
application ,I've changed my system date ahead a day.I observed that tomcat
server started creating new session for the same client.

Any pointers on this to resolve ?Please help me.

Thanks in advance.

Regards,
Naga.

-----
Regards,
Naga.
-- 
View this message in context: http://www.nabble.com/session-problem-in-Tomcat-server-when-system-date-changes.-tp25270026p25270026.html
Sent from the Tomcat - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Re: session problem in Tomcat server when system date changes.

Posted by Mark Thomas <ma...@apache.org>.
Nagineni wrote:
> Hi,
> 
> I'm quite surprise to see this issue in the tomcat server.While running the
> application ,I've changed my system date ahead a day.I observed that tomcat
> server started creating new session for the same client.
> 
> Any pointers on this to resolve ?Please help me.

Sessions have expiration times and Tomcat uses the date/time to track
session creation and expiration. If you change the date/time by more
than the session expiration time then the sessions are all going to expire.

The solution is a set your system's clock and timezone correctly and use
ntp to keep it that way.

Mark




---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org