tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Gabriel Gajdos" <>
Subject Re: SessionListener does not get enough information
Date Mon, 24 Jun 2002 11:52:28 GMT
Another idea (I do not like HttpSessionBindingListener):

On sessionDestroyed you should be able to get Session ID information.

So just write your method:

MySessionDataDropper.drop(String sessionID) or (MyObject data)

which will drop all data identified by sessionID.

You have one Hashtable (scope application) with objects for your session identified by key
sessionID String.

On sessionCreated you add some "pointer" to your temporary data
On sessionDestroyed you just take the correct object and drop its data.

Another way is to use finalizers (= I do not recommend).


To unsubscribe, e-mail:   <>
For additional commands, e-mail: <>

View raw message