Uploaded image for project: 'eZ Publish / Platform'
  1. eZ Publish / Platform
  2. EZP-13381

possibility to control what happens on logout - logout handler

    Details

      Description

      there has been a request for a feature to allow custom handling of the logout function, in order to perform certain actions related to custom functionality, like cleaning up session variables used in custom modules.

      here are 2 rough suggestions for implementation:

      1. We could allow custom logout handlers to hook in to the systems' logout function.
      multiple custom modules may require their own logout handler to clear module-specific data/variables. we would then allow multiple logout handlers to be hooked in, and executed sequentially.

      2. We could put all custom module session variables in to a session array that the built-on logout function would unset() when executed.
      unset( ($_SESSION['privateVars']['myVar'] );
      other session variables would be left untouched.

        Issue Links

          Activity

          Jostein- Knudsen created issue -
          Hide
          Jostein- Knudsen added a comment -

          possible related requests:

          #007598: RedirectURI form variable in logout template
          http://issues.ez.no/IssueView.php?Id=7598&activeItem=8

          #009275: Logout should redirect like login
          http://issues.ez.no/IssueView.php?Id=9275&activeItem=21

          Show
          Jostein- Knudsen added a comment - possible related requests: #007598: RedirectURI form variable in logout template http://issues.ez.no/IssueView.php?Id=7598&activeItem=8 #009275: Logout should redirect like login http://issues.ez.no/IssueView.php?Id=9275&activeItem=21
          Hide
          Jérôme Vieilledent added a comment -

          It would be indeed interesting to have such handlers, to control logout for SSO for instance.
          Interesting ways could be :
          1. Have an operation controlling this, allowing to add a workflow event
          2. Add a handleSSOLogout() in SSO handlers
          3. Add a method in login handlers

          Show
          Jérôme Vieilledent added a comment - It would be indeed interesting to have such handlers, to control logout for SSO for instance. Interesting ways could be : 1. Have an operation controlling this, allowing to add a workflow event 2. Add a handleSSOLogout() in SSO handlers 3. Add a method in login handlers
          Hide
          Nicolas Pastorino added a comment -
          Show
          Nicolas Pastorino added a comment - In reply to comment #021658 +1 !
          Hide
          Björn Dieding@xrow.de added a comment -

          Hi,

          I was also thinking to make the ezuser calls pluginable.

          Meaning you could extend a new class from ezuser and reimplement all you need.

          Show
          Björn Dieding@xrow.de added a comment - Hi, I was also thinking to make the ezuser calls pluginable. Meaning you could extend a new class from ezuser and reimplement all you need.
          Hide
          Alexandre SEBBANE added a comment -

          +1+1+1

          SSOLOGOUT HANLDER is a great IDEA

          Show
          Alexandre SEBBANE added a comment - +1+1+1 SSOLOGOUT HANLDER is a great IDEA
          Hide
          Jérôme Vieilledent added a comment -

          Guys, until we have a proper handler based system, here's a workaround : http://share.ez.no/blogs/jerome-vieilledent/handle-logout-hooks

          Show
          Jérôme Vieilledent added a comment - Guys, until we have a proper handler based system, here's a workaround : http://share.ez.no/blogs/jerome-vieilledent/handle-logout-hooks
          Hide
          Felix Woldt added a comment -

          +1

          Show
          Felix Woldt added a comment - +1
          Hide
          Joe Kepley added a comment -

          +1 on this

          Show
          Joe Kepley added a comment - +1 on this
          Gunnstein Lye made changes -
          Field Original Value New Value
          Fix Version/s Future [ 11071 ]
          André Rømcke made changes -
          Workflow eZ Community Workflow [ 19577 ] eZ Engineering Scrumban Workflow [ 35114 ]
          André Rømcke made changes -
          Workflow eZ Engineering Scrumban Workflow [ 35114 ] EZ* Development Workflow [ 68382 ]
          Alex Schuster made changes -
          Workflow EZ* Development Workflow [ 68382 ] EZEE Development Workflow [ 106560 ]

            People

            • Assignee:
              unknown
              Reporter:
              Jostein- Knudsen
            • Votes:
              1 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated: