• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How to avoid session invalidation upon exception

 
Vepa Sritej
Ranch Hand
Posts: 42
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello ranchers,

I am developing a web application wherein I noticed that whenever I get an exception at any point of time, the session attributes are getting null. Why is this and how to avoid this? Please help!!
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 65335
97
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
An exception does nothing to invalidate the session. There must be something else at work.
 
Jonathan Elkharrat
Ranch Hand
Posts: 170
Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
what kind of exception?
do the exception occur in the same page that set those session's attributes?
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic