aspose file tools*
The moose likes Cattle Drive and the fly likes session.invalidate() invalid? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Java 8 in Action this week in the Java 8 forum!
JavaRanch » Java Forums » This Site » Cattle Drive
Bookmark "session.invalidate() invalid?" Watch "session.invalidate() invalid?" New topic
Author

session.invalidate() invalid?

Carol Murphy
village idiot
Bartender

Joined: Mar 15, 2001
Posts: 1190
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

Joined: Jul 22, 2000
Posts: 9043
    
  10
I think you want to avoid session.invalidate()


JavaBeginnersFaq
"Yesterday is history, tomorrow is a mystery, and today is a gift; that's why they call it the present." Eleanor Roosevelt
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: session.invalidate() invalid?
 
Similar Threads
HttpSession invalidate not working?
Same SessionID after invalidating Session
Tomcat 7 session.invalidate() doesn't work when setting sessionCookiePath="/" in context.xml
session invalidating using session ID????
invalidate a session by using session id