Win a copy of Practical SVG this week in the HTML/CSS/JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

session.invalidate() invalid?

 
Carol Murphy
village idiot
Bartender
Posts: 1203
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'm trying a new approach to Servlets 4b. I'm calling session.invalidate() from somewhere in my servlet, but it doesn't work like I thought it would. In my book the text states that calling invalidate() on the session object removes all attributes including the jsessionID cookie. But when I look up the cookies, the ID is still there, and when I log in again thinking I'm opening a new session, the ID is the same as before. What's up with that?
 
Marilyn de Queiroz
Sheriff
Posts: 9079
12
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I think you want to avoid session.invalidate()
 
Forget Steve. Look at this tiny ad:
the new thread boost feature: great for the advertiser and smooth for the coderanch user
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!