tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Murthy Gorty <mur...@teamon.com>
Subject Session-expiry bug? getLastAccessedTime
Date Fri, 09 Feb 2001 17:59:02 GMT
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 long getLastAccessedTime() 
    {
	return (this.lastAccessedTime);
    }
--------------------------------------------
lastAccessedTime is the time a request is made BEFORE the present request.
So, getLastAccessedTime is the time of the (last-1)request 
and not the last request.

Isnt this a bug? shouldnt getLastAccessedTime return
thisAccesstime?

I'd appreciate it if the replies are also sent to murthy@teamon.com

thanks,
murthy

_________________________________________________________________
http://www.TeamOn.com Transform Your E-mail into an Online Office

Mime
View raw message