sessionDestroyed() method is called twice
843841Jun 22 2006 — edited Jun 23 2006Hello friends,
I am working on a web based Java project which has a requirement of tracking concurrent user sessions. If a user tries to login more than once, I have to display error message on home page. To track multiple user session, I am maintaining a hashtable in application context, which I am manupulating each time a user logs in and logs out. I also have a requirement of automatic session expiration handling. For this, I am maintaining an event listener (implements HttpSessionListener) and overridden sessionDestroyed() method. The problem is each time I am trying to logout, the sessionDestroyed() method is called twice. I am using Weblogic as my application (also web) server.
Can anyone help me to get a solution. It's an urgent requirement.
Thanks in advance,
Niranjan