Issue Details (XML | Word | Printable)

Key: GLASSFISH-17118
Type: Bug Bug
Status: Resolved Resolved
Resolution: Fixed
Priority: Critical Critical
Assignee: Shing Wai Chan
Reporter: ahummel
Votes: 0
Watchers: 1
Operations

If you were logged in you would be able to see more operations.
glassfish

Server-Shutdown: keepSessions=true causes HTTP sessions to expire before writing to SESSIONS.ser

Created: 27/Jul/11 09:13 PM   Updated: 17/Oct/11 11:02 PM   Resolved: 29/Jul/11 10:53 PM
Component/s: web_container
Affects Version/s: 3.1
Fix Version/s: 3.1.2_b01

Time Tracking:
Not Specified

Environment:

persistence-type: memory (default)


Tags:
Participants: ahummel and Shing Wai Chan


 Description  « Hide

During server shutdown, the com.sun.enterprise.web.WebContainer.unloadWebModule and com.sun.enterprise.web.WebModule.saveSessions methods are invoked. If keepSessions=true, this causes a org.apache.catalina.session.StandardManager.writeSessions(OutputStream) call which expires all current sessions. As a consequence, the sessions cannot be passivated to the SESSIONS.ser file, thus, HTTP session do not survive a server restart - which is wrong IMHO.

If keepSessions=false, the sessions survive a server restart.



No work has yet been logged on this issue.