Uploaded image for project: 'Struts 2'
  1. Struts 2
  2. WW-3773

CreateSessionInterceptor and HttpSessionListener do not cooperate well

    XMLWordPrintableJSON

Details

    Description

      When the current http session has expired, a new http session can be automatically created by using a CreateSessionInterceptor. However, this new session is not 'synchronized' with the action context session, i.e., the map that is injected into any action that is SessionAware. This map is always empty, however a newly created http session need not necessarily be empty, for example when we register a HttpSessionListener with the web application that automatically adds something to the session. (May be useful if you want to avoid null checks when retrieving a known object from the session.)

      Attachments

        Activity

          People

            lukaszlenart Lukasz Lenart
            kcoolsae Kris Coolsaet
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: