This week's book giveaways are in the Refactoring and Agile forums.
We're giving away four copies each of Re-engineering Legacy Software and Docker in Action and have the authors on-line!
See this thread and this one for details.
Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Ending a session?

 
Allen Williams
Ranch Hand
Posts: 136
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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?
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64629
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Invalidate the session.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic