Re: <strong>How to use the session-id to retrieve the Session object?</strong>
Posted By:
ranjith_ayinala
Posted On:
Friday, January 4, 2002 01:03 AM
The getId() method of HttpSession interface would work for U.But Why do u want to save that in database?In any case U dont need to save ID in database as every request is identified differently and if u invoke get session on request u get session object particular to that user and sessions have limited life span. Also, invoking getId() on that session objec gives u user specific-session id everytime. U can assosiate any other object , say a hashtable or vector with that id and retrieve that object it all thru the session.