Uploaded image for project: 'Sling'
  1. Sling
  2. SLING-1270

Replace Session.logout from SlingMainServlet

    XMLWordPrintableJSON

Details

    • Task
    • Status: Closed
    • Major
    • Resolution: Fixed
    • Engine 2.0.6
    • Engine 2.1.0
    • Engine
    • None

    Description

      The new Commons Auth bundle from SLING-966 registers a ServletRequestListener to be informed when the request has terminated and the session may be logged out. Currently, the Http Service implementation does not support such listeners and the session may not be logged out at all.

      As a workaround the Commons Auth bundle implements a Java VM finalize() method to try to ensure logging the session out.

      As a further workaround the SlingMainServlet should - in a finally clause - logout the session of the request's resource resolver.

      The SlingMainServlet configuration should be removed as soon as we can reasonably be sure of ServletRequestListener support.

      Attachments

        Activity

          People

            fmeschbe Felix Meschberger
            fmeschbe Felix Meschberger
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: