This week's book giveaways are in the Java EE and JavaScript forums.
We're giving away four copies each of The Java EE 7 Tutorial Volume 1 or Volume 2(winners choice) and jQuery UI in Action and have the authors on-line!
See this thread and this one for details.
The moose likes JSP and the fly likes Ending a session? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Java » JSP
Bookmark "Ending a session?" Watch "Ending a session?" New topic
Author

Ending a session?

Allen Williams
Ranch Hand

Joined: Sep 04, 2006
Posts: 136
I apologize in advance, this is a very general question, so I'm not sure exactly where to post it (here or servlets or elsewhere).

How does one gracefully end a session with jsp/servlets? Free up all the (in my application) user- or session-specific resources, and return the user to a login screen? The equivalent of "exit" in C or C++ (well, this wouldn't return the user to anything other than to the OS prompt or another window getting the focus, but you know what I mean).

Is there a convention, or standard that sites should use?


-------<br />Thanks & regards,<br />anw
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 61063
    
  66

Invalidate the session.


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Ending a session?