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
How to get a HttpSession from a Session ID ?
Joined: Sep 12, 2003
Feb 06, 2005 19:31:00
I have a user's session ID stored in a bean. I want to be able to get the actual
object that this identifies, in order to invalidate it. Is there a way, besides using HttpSessionContext.getSession(), which is deprecated ?
Thanks in advance...
Joined: Aug 15, 2004
Feb 06, 2005 23:23:00
As docs says HttpSessionContext.getSession() is Deprecated with no replacement.
Infact the Id you get from the method getId() is not reliable. As docs says, Id is assigned by the
container and is implementation dependent.
Joined: Dec 11, 2004
Feb 07, 2005 05:34:00
I use a session listener to store a reference to the session in a
that lives in a singleton object.
How to ask a question...
Simple Servlet Examples
I agree. Here's the link:
subject: How to get a HttpSession from a Session ID ?
Getting HTTP Session by using Session ID
Getting HttpSession object from SessionContext
Get session object from session ID
Why cann��t get the original session object in second Servlet?
wich session tracking techniwue to use
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2015