File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes JSP and the fly likes regarding invalidating sessions 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 » Java » JSP
Bookmark "regarding invalidating sessions" Watch "regarding invalidating sessions" New topic
Author

regarding invalidating sessions

Gaurav Chikara
Ranch Hand

Joined: Jun 09, 2000
Posts: 410
Is it possible to forcefully invalidate a session
generally we invalidate a session on some event
by session.invalidate() method
but if we want to forcefully invalidate it thru server or ny other means can anyone pls tell as how is it possible?


SCJP,SCWCD,SCBCD<br />If Opportunity doesn't knock then build the door
William Brogden
Author and all-around good cowpoke
Rancher

Joined: Mar 22, 2000
Posts: 12682
    
    5
You would need an independent storage for references to the sessions since the API no longer lets you get at all sessions in an application.
Some sort of Administration servlet with a Vector of sessions would work.
Bill


Java Resources at www.wbrogden.com
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: regarding invalidating sessions
 
Similar Threads
session invalidate for session id
Ending a session?
session timeout
session management -session not destroying automatically
HttpSession