This week's book giveaway is in the OO, Patterns, UML and Refactoring forum.
We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line!
See this thread for details.
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

JavaRanch » Java Forums » Java » JSP
Bookmark "regarding invalidating sessions" Watch "regarding invalidating sessions" New topic

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

Joined: Mar 22, 2000
Posts: 12998
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.
I’ve looked at a lot of different solutions, and in my humble opinion Aspose is the way to go. Here’s the link:
subject: regarding invalidating sessions
It's not a secret anymore!