aspose file tools
The moose likes JSP and the fly likes Session Deletion help. Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Java » JSP
Reply Bookmark "Session Deletion help." Watch "Session Deletion help." New topic
Author

Session Deletion help.

Fritz Largosa
Ranch Hand

Joined: Sep 12, 2005
Posts: 70
Is it possible for a jsp page to delete all sessions? I have googled this but have not found any useful solution.
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 56216
    
  13

No. Why?


[Smart Questions] [JSP FAQ] [Books by Bear] [Bear's FrontMan] [About Bear]
Fritz Largosa
Ranch Hand

Joined: Sep 12, 2005
Posts: 70
I want to discard session data, everytime a user logs out.
Paul Clapham
Bartender

Joined: Oct 14, 2005
Posts: 16483
    
    2

But in that case you would only want to "delete" (real term: "invalidate") one session - the session belonging to the user who submitted the request. You would want to leave everybody else's session alone. No?
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 56216
    
  13

You can invalidate the user's session. Nothing more.
Fritz Largosa
Ranch Hand

Joined: Sep 12, 2005
Posts: 70
so when I call session.invalidate() does that invalidate all sessions of everyone connected or just that one user?
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 56216
    
  13

As I said.
ak pillai
author
Ranch Hand

Joined: Feb 11, 2006
Posts: 288
no, only a particular users' session.


java j2ee job interview questions with answers | Learn the core concepts and the key areas
 
I agree. Here's the link: http://zeroturnaround.com/jrebel - it saves me about five hours per week
 
subject: Session Deletion help.
 
Similar Threads
suggest me a slogan
Taking a break for a week
Posts getting mixed up or JavaRanch Syndrome?
Will be gone for 4 days.
New Forum "Using Java with non-Java Technologies"