File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

session invalidation

 
Saman Perera
Ranch Hand
Posts: 61
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Dear All

some time i get the session invalidation , what is session invalidation

Thanks
Saman
 
Jignesh Gohel
Ranch Hand
Posts: 276
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
It means that the session object & all the attributes set by the session object created got destroyed.
 
Vishnu Prakash
Ranch Hand
Posts: 1026
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
After logging into the application, if the application is inactive for a specified time then session is considered inactive and session object as well as attributes set in session scope are destroyed.
 
William Brogden
Author and all-around good cowpoke
Rancher
Posts: 13048
6
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am a bit concerned that the use of "destroyed" may give the wrong impression. All of the references that were held by the session are removed but the objects are still there. If the session reference was the only one, that object becomes unreachable and eligible for GC, but if there are other references, nothing happens to the object.
If you want something to happen to an object when the session is invalidated, you need to look into HttpSessionBindingListener or one of the other listeners.
Bill
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic