Skip to Main Content

Java EE (Java Enterprise Edition) General Discussion

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

sessionDestroyed() method is called twice

843841Jun 22 2006 — edited Jun 23 2006
Hello 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
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jul 21 2006
Added on Jun 22 2006
3 comments
750 views