This week's book giveaway is in the Other Languages forum.
We're giving away four copies of Functional Reactive Programming and have Stephen Blackheath and Anthony Jones on-line!
See this thread for details.
Win a copy of Functional Reactive Programming this week in the Other Languages 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