Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How to destroy a session scoped bean?

 
Timothy Sam
Ranch Hand
Posts: 751
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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!
 
Andreas Melin
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
session.invalidate() should work just fine
 
Timothy Sam
Ranch Hand
Posts: 751
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
thanks dude!
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic