posted 15 years ago
Actually, when you do session.invalidate(), you DO delete the entire session and all the session variables.
You can delete an individual session object by obtaining the HttpSession and calling its removeAttribute method. However, I'm not sure what the consequences of doing this on a managed session-scope bean might be. Non-managed session-scope beans would be OK.
The secret of how to be miserable is to constantly expect things are going to happen the way that they are "supposed" to happen.
You can have faith, which carries the understanding that you may be disappointed. Then there's being a willfully-blind idiot, which virtually guarantees it.