Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How to close a session

 
Abhishek Asthana
Ranch Hand
Posts: 146
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 26
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic