Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Ending Your Session

Status
Not open for further replies.

cohans

Programmer
Aug 21, 2001
35
0
0
US
Someone just told me that when you close your browser your JSP session (login in this case) is not ended, so that if you start up another browser and go to your site, the JSP engine still thinks your logged on. Is this true? If so, how do end that session before shutting down the browser? Thanks.
 
This is actually not specific to JSP, but you can programmatically end the session. Provide the user wth a "log out" option , then end the session like this:

sessionObjoect.invalidate();
 
That's ok if the user actually clicks the logout button. But for cases where the user clicks the browsers exit button on the window frame instead...?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top