save « Session « JSP-Servlet Q&A





1. How to save data upon http session invalidation through jsp / servlets?    stackoverflow.com

To track user activity history on a web application, I am attempting to save some session data to a database when the session is invalidated. My initial approach was to store ...

2. Should heavy-weight java objects be saved in session via setAttribute? Is it a good practice in servlet development?    stackoverflow.com

I mean if I construct a heavy object [including collections and a bunch of props ] and I need to query that object from time to time during the session life, ...

3. Saving objects in servlet session and java.io.NotSerializableException    stackoverflow.com

 SEVERE: IOException while loading persisted sessions:
         java.io.WriteAbortedException:
         writing aborted; java.io.NotSerializableException:
That means this object cannot ...

4. With java/j2ee, how does serialization work and in relation to saving that object in session?    stackoverflow.com

If I have a complex object with hundreds of String fields and objects of objects. Some are implementing Serializable and some aren't. How would a j2ee server serialize that data in session. ...

5. Saving data at the time of session timing out    coderanch.com

Hello All, I am working on a web-based application that has a series of forms that the user fills out. If the session were to time out, I need to save the data entered by the user before logging him/her out. Can anyone tell me how this can be done? Any kind of help in this regard - including source code ...