aspose file tools*
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


Win a copy of Soft Skills this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Bookmark "How to close a session" Watch "How to close a session" New topic
Author

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.
Abhishek.
arunij katiliyar
Greenhorn

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 .


Arun



Arun
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: How to close a session