This site has been archived and you can no longer log in or post new messages. For up-to-date community resources please visit

eZ Community » Forums » eZ Publish 5 Platform » Constantly losing session for logged...

Constantly losing session for logged in user

Constantly losing session for logged in user

Thursday 20 November 2014 10:52:48 am

We have ported a site from eZ 4 to 5.3, with legacy mode turned on. It has an intranet, on which a subtree is restricted through a content section. The intranet has a separate anonymous user.


            anonymous_user_id: 123



This anonymous user does not have access to the restricted subtree, so one has to log in to gain access. Here we encounter the issue.
When one logs in, the location accessed becomes viewable, as expected. However, if one does a refresh in the browser or navigates to another location inside the subtree, the session is lost and you have to log in again.

Cookies when accessing the subtree, not logged in:

  1. eZSESSID<hash>: <initial value>

Cookies after login:

  1. eZSESSID<same hash>: <different value>
  2. is_logged_in: true

Cookies after refresh or having navigated: 


  1. eZSESSID<same hash>: <initial value>
  2. is_logged_in: deleted


The site is running in cluster mode, sessions are written to the DB.


        class: PDO
            dsn: "mysql:host=(…);dbname=(…)"
            user: ()
            password: ()
            - [setAttribute, [3, 2]] # \PDO::ATTR_ERRMODE, \PDO::ERRMODE_EXCEPTION
        class: Symfony\Component\HttpFoundation\Session\Storage\Handler\PdoSessionHandler
        arguments: ["@pdo", "%pdo.db_options%"]

Notably, a surprising amount of entries are written to the session table, 1000-1500 per hour. The intranet is used by maybe two hundred people.

Any idea?

Modified on Thursday 20 November 2014 11:17:30 am by Jon-Morten Kristiansen

No reply yet!


You must be logged in to post messages in this topic!

36 542 Users on board!

Forums menu

Proudly Developed with from