| 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
|
|
|
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
|
|
|
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
|
|
|
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
|
|
|
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
|
 |
 |
|
|
subject: Session Deletion help.
|
|
|