It's not a secret anymore!
The moose likes Struts and the fly likes session invalidate for session id Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "session invalidate for session id" Watch "session invalidate for session id" New topic

session invalidate for session id

pk chaurasia

Joined: Mar 08, 2007
Posts: 5
hi to all,

i want to invalidate the session for a specific session id.
for invalidate the session we know [cpode]session.invalidate();[/code]
but it invalidate the current session.

please reply me, i m waiting....

Merrill Higginson
Ranch Hand

Joined: Feb 15, 2005
Posts: 4864
Insofar as I am aware, there is no way to invalidate another user's session. It would be a major security hole if you could. Imagine the damage that could be done if one user could sign on and then invalidate everybody else's session.

Perhaps if you explained what you are trying to accomplish, we might be able to suggest alternate methods to achieve the same end.
[ March 13, 2007: Message edited by: Merrill Higginson ]

Consultant, Sima Solutions
I agree. Here's the link:
subject: session invalidate for session id
It's not a secret anymore!