aspose file tools*
The moose likes Struts and the fly likes How to destroy a session scoped bean? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "How to destroy a session scoped bean?" Watch "How to destroy a session scoped bean?" New topic
Author

How to destroy a session scoped bean?

Timothy Sam
Ranch Hand

Joined: Sep 18, 2005
Posts: 746
I want to destroy my session scoped bean... I use the bean to store info about the user (username, password, etc...) and when he logs out I want the bean or rather session to be destroyed... Is it legal to just call session.invalidate()? Thanks!


SCJP 1.5
http://devpinoy.org/blogs/lamia/ - http://everypesocounts.com/
Andreas Melin
Greenhorn

Joined: Dec 13, 2005
Posts: 1
session.invalidate() should work just fine
Timothy Sam
Ranch Hand

Joined: Sep 18, 2005
Posts: 746
thanks dude!
 
 
subject: How to destroy a session scoped bean?