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

User is logged out as result of role/policy changes (Memcache sessions)

    XMLWordPrintable

Details

    Description

      When using memcache-based session handler, changes to user roles/policies done through the admin siteaccess will cause the corresponding user to be logged out in the frontend.

      Steps to reproduce:
      1. On browser A, login to frontend with user a
      2. On browser B, login to admin interface.
        1. Assign a new role to user a, or modify one of the existing role by adding/removing policies

      Result: User A will be logged out.

      Config:
      framework:
          session:
              cookie_domain: .ezpublish.local
              save_path: %kernel.root_dir%/sessions
              handler_id: session.handler.memcache
      
      parameters:
          session_memcache_host: "127.0.0.1"
          session_memcache_port: 9001
          session_memcache_prefix: prefix_
          session_memcache_expire: 3600
      
      services:
          session.memcache:
              class: Memcache
              calls:
                   - [ addServer, [ %session_memcache_host%, %session_memcache_port% ]]
      
          session.handler.memcache:
              class: Symfony\Component\HttpFoundation\Session\Storage\Handler\MemcacheSessionHandler
              arguments: [ @session.memcache, { prefix: %session_memcache_prefix%, expiretime: %session_memcache_expire% } ]
      

      Attachments

        Activity

          People

            Unassigned Unassigned
            joao.inacio-obsolete@ez.no Joao Inacio (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Time Tracking

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 2 days, 1 hour, 30 minutes
                2d 1h 30m