glassfish
  1. glassfish
  2. GLASSFISH-17118

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

    Details

    • Type: Bug Bug
    • Status: Resolved
    • Priority: Critical Critical
    • Resolution: Fixed
    • Affects Version/s: 3.1
    • Fix Version/s: 3.1.2_b01
    • Component/s: web_container
    • Labels:
      None
    • Environment:

      persistence-type: memory (default)

      Description

      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.

        Activity

        No work has yet been logged on this issue.

          People

          • Assignee:
            Shing Wai Chan
            Reporter:
            ahummel
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: