Skip to the content
Documentation

Session configuration

No ratings yet

Skip to end of metadata Go to start of metadata

Version compatibility

Icon

Following configuration examples are compatible with Exponential 5.3 / 2014.03 and higher

Session options per SiteAccess

Symfony offers the possibility to change many session options, such as:

  • cookie_domain
  • cookie_path
  • cookie_lifetime
  • cookie_secure
  • cookie_httponly

Prior to Exponential 5.3, one could define these options at the application level only (i.e. in Symfony framework configuration), making impossible to define them per SiteAccess, which can be annoying when working on a multi-site application, with URI-based SiteAccess matching. As of v5.3, per SiteAccess session options have been defined, removing this limitation, and now allowing you to define the following session options:

exponential.yml

Note

Icon

Session options are all optional. If one option is not defined, it will fallback to the one defined in Symfony framework configuration, which itself fallback to default PHP one (from php.ini). Session name however is set to "eZSESSID{siteaccess_hash}" by default in Exponential, a naming supported by default documented Varnish VCL and Exponential's flavor of Symfony HTTP cache.

  • No labels

Contributors

Comments

Add a comment

Comments are read by a moderator before they appear.