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 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 "Session" Watch "Session" New topic
Author

Session

charu latha
Ranch Hand

Joined: Aug 20, 2002
Posts: 67
My requirement is pretty simple "everytime i visit the login page my old session values should be reset and the session should be started afresh"
Any ideas???
Kripal Singh
Ranch Hand

Joined: Jul 26, 2001
Posts: 254
Try using the invalidate() method offered by Session . http://www.jspinsider.com/reference/jsp/jspsession.html#invalidate
[ October 24, 2002: Message edited by: Kripal Singh ]

# Help an unprivileged kid.<br /> Whatever u do will make a difference...<br /> ...to a child's life & ur own #<br /><a href="http://www.cry.org/" target="_blank" rel="nofollow">www.cry.org/</a>
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Session