You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by bu...@apache.org on 2002/01/17 09:42:34 UTC
DO NOT REPLY [Bug 5895] New: -
Not all sessions receives HttpSessionListener.sessionDestroyed(event) using FileStore
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=5895>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND
INSERTED IN THE BUG DATABASE.
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=5895
Not all sessions receives HttpSessionListener.sessionDestroyed(event) using FileStore
Summary: Not all sessions receives
HttpSessionListener.sessionDestroyed(event) using
FileStore
Product: Tomcat 4
Version: 4.0.1 Final
Platform: Other
OS/Version: Other
Status: NEW
Severity: Normal
Priority: Other
Component: Catalina
AssignedTo: tomcat-dev@jakarta.apache.org
ReportedBy: tapik@buchtovi.cz
I've implemented trivial HttpSessionListener, which contains hashtable for active sesions:
public class MySessions implements HttpSessionListener {
private static Hashtable _sessions = new Hashtable();
public void sessionCreated(HttpSessionEvent event) {
_sessions.put(event.getSession().getId(),event.getSession());
}
public void sessionDestroyed(HttpSessionEvent event) {
_sessions.remove(event.getSession().getId());
}
public static Hashtable getSessions() {
return _sessions;
}
}
I'm using FileStore and PersistenceManager and MySessions.sessionCreated() is called twice for
each request.getSession() (with different session ID key, because two new elements are stored to
the Hashtable).
Another problem is calling the HttpSessionListener.sessionDestroyed(event). 565 invalidatet
sessions are stored in my Hashtable after 12 hours. So not for all sessions MySessions received
the sessionDestroyed(event) event.
The bug should be fixed by rewriting the setID() os StandardSession and also FileStore have to
be rewritted.
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>