File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes EJB and other Java EE Technologies and the fly likes How to close a session Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Bookmark "How to close a session" Watch "How to close a session" New topic

How to close a session

Abhishek Asthana
Ranch Hand

Joined: Sep 08, 2004
Posts: 146
I have made a shopping cart where user has to login. I have used stateful session bean to manage the session. Now the problem is that even after shutting down computer, the user is not getting logged off.
Please tell me how to kill a session when user logs out or system is shut down.
I am using JBoss 3.2.1
Please help.
arunij katiliyar

Joined: Mar 09, 2005
Posts: 26
posted March 14, 2005 03:23 AM

The user session management is usually handled by the webserver . Can you give more details about your user session management . Are you using session based or cookie based authentication .

when a user logins into the web server , the web server has the settings for idle time out which is the time that the user's http session will be active with no action taken from user . So even if you have cleaned up the user's session details such as shopping cart and your application relies on cookie based authentication and if you have not removed the cookie or the key from session , the users http session will still be alive .


I agree. Here's the link:
subject: How to close a session
It's not a secret anymore!