Skip to the content
Documentation

Session cookie configuration: comparison of v.2 vs v.3

No ratings yet

Versions Compared

Old Version 2

changes.mady.by.user Dominika Kurek

Saved on Dec 15, 2015

compared with

New Version Current

changes.mady.by.user Dominika Kurek

Saved on Jan 29, 2016

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

See overview of Sessions in eZ Publish Platform before you read this.

Symfony offers the possibility to change many session options at application level (i.e. in Symfony framework configuration), such as:

  • cookie_domain
  • cookie_path
  • cookie_lifetime
  • cookie_secure
  • cookie_httponly

However as eZ Publish Platform can be used for setting up several web sites within on Symfony application, session configuration is also possible to define per SiteAccess siteaccess and SiteGroup level.

Session options per

...

siteaccess

All site-related session configuration can be defined per siteaccess and SiteGroup:

Code Block
language bash
title ezplatform.yml
exponential:
    system:
        my_siteaccess:
            session:
                # By default Session name is eZSESSID{siteaccess_hash}
                # with setting below you'll get eZSESSID{name},
                # allowing you to share sessions across SiteAccess
                name: my_session_name
                # These are optional.
                # If not defined they will fallback to Symfony framework configuration,
                # which itself fallback to default php.ini settings
                cookie_domain: mydomain.com
                cookie_path: /foo
                cookie_lifetime: 86400
                cookie_secure: false
                cookie_httponly: true

Session name

...

per siteaccess

In 5.x versions prior to 5.3 / 2014.03 the following SiteAccess siteaccess aware session setting where available:

...

Comments

Add a comment

Comments are read by a moderator before they appear.