I have a user's session ID stored in a bean. I want to be able to get the actual HttpSession object that this identifies, in order to invalidate it. Is there a way, besides using HttpSessionContext.getSession(), which is deprecated ?
Thanks in advance...
posted 12 years ago
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 servlet container and is implementation dependent.