Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Invalidating a Session

Status
Not open for further replies.

bunnyweb

MIS
Jan 13, 2003
42
IE
Hello out there ...

I have a servlet where I am invalidating my session objects using the following:

request.getSession().invalidate();

My problem is that it invalidates ALL of my session objects. I have multiple session beans in my application. How do I invalidate just one of them?

Thanks a mil!

Rachel
 
session.invalidate() will invalidate the entire session.
If you want to just remove a single object that you put into the session use session.removeAttribute(attributename) instead.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top