This week's book giveaway is in the Clojure forum.
We're giving away four copies of Clojure in Action and have Amit Rathore and Francis Avila on-line!
See this thread for details.
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Clearing up session objects

 
Richard John
Greenhorn
Posts: 8
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
In my JSP application I'm finding that I am creating a lot of session objects. I'm beginning to get a bit worried about future performance issues by having so many session objects. Is there a neat way to tidy up after myself? Ideally I would like to kill off session objects when a user closes a particular page. Obviously I do realise that when a user logs off or times out the sessions are tidied up by the server.
Thanks for any pointers.
 
hemanth kumar
Ranch Hand
Posts: 55
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Jack
u can clear up the session's that u create by using the invalidate() method of the HttpSession object.
Hop above helps
Hemanth
 
hemanth kumar
Ranch Hand
Posts: 55
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
oops got ur name wrong.Sorry

 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic