File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
invalidate a session
Joined: Oct 25, 2004
Mar 31, 2005 23:09:00
Do you know how to invalidate a user by using a session id in
Joined: Jan 24, 2005
Apr 01, 2005 00:01:00
You neednt have a session id to invalidate a session. Get a handle to the session using request.getSession(false) and on the session object returned, call the invalidate() method.
Joined: May 26, 2004
Apr 01, 2005 01:31:00
you can not invalidate user using session id.you can remove user from session..
session = request.getSession();
or you have to invalidate session..
It is sorta covered in the
JavaRanch Style Guide
subject: invalidate a session
How to invalidate session on the basis of session ID in servlet
Authentication with JDBCRealm - getUser() ?
How to delete a session by knowing the session id
Calling invalidate() on the session....
Ending a session?
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2015