Details
-
Bug
-
Resolution: Fixed
-
High
-
5.1
-
None
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:
- On browser A, login to frontend with user a
- On browser B, login to admin interface.
- 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% } ]