tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From vamsi kanuri <v_kan...@yahoo.co.uk>
Subject Re: DO NOT REPLY [Bug 34107] New: - session already invalidated before valueUnbound() called
Date Tue, 22 Mar 2005 07:46:46 GMT
dont send any more emails ........or i have to sen a bug to ur site

bugzilla@apache.org wrote:DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUGĀ·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED ANDĀ·
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=34107

Summary: session already invalidated before valueUnbound() called
Product: Tomcat 5
Version: 5.0.28
Platform: Other
OS/Version: other
Status: NEW
Severity: normal
Priority: P3
Component: Catalina
AssignedTo: tomcat-dev@jakarta.apache.org
ReportedBy: bmilbratz@outstart.com


This may not be a bug, as it appears the servlet 2.4 spec is not precise on this
matter.

The issue is that in previous versions of Tomcat and Weblogic an implementation
of javax.servlet.http.HttpSessionBindingListener could successfully make this call:

public void valueUnbound(HttpSessionBindingEvent event)
{
long lastAccessedTime = event.getSession().getLastAccessedTime();

In Tomcat 5, the Session is already invalidated by the time the container calls
'valueUnbound', so the call to getLastAccessedTime() fails.


Sections 7.4-7.6 of the 2.4 servlet specification do not precisely specify
whether or not the session is valid at the time the container calls valueUnbound().

This code has functioned fine in previous versions of Catalina/Tomcat as well as
weblogic. 

I have a code workaround for this, but wanted to determine if this was an issue.

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

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



Send instant messages to your online friends http://uk.messenger.yahoo.com 
Mime
  • Unnamed multipart/alternative (inline, 8-Bit, 0 bytes)
View raw message