ez.no / ezpublish / documentation / incoming / session
These documentation pages are no longer maintained. Please visit the new documentation site.
eZ publish uses the PHP session functionality to get session support. PHP will do most of the work and call som eZ publish specific functions for getting and storing the session data in the database.
Sessions provide a secure and efficient way of storing information on the current user, it's also used to speed up access to the site by storing often used information.
Sessions are configured in the file settings/site.ini and all settings are placed under the group Session. The following values are possible to change.
INI variable: SessionTimeout
This value controls how many seconds the session will last until it can no longer be used. The default is set to 3 days which is 259200 seconds.
Note: To use the following features you need eZ publish 3.2.
INI variable: SessionNameHandler
This variable controls how the session name is generated. It's possible to either let PHP control the name (like it was in 3.1 and earlier) or use a custom name. For using the default name enter default as the value, for custom naming use custom.
Note: Changing from default to custom on an existing site will cause all sessions to be lost for all users. This means that they have to re-login.
INI variable: SessionNamePrefix
The name to use for the session if custom name handler was chosen. By default this contains eZSESSID.
INI variable: SessionNamePerSiteAccess
Controls if the name of the current siteaccess should be appended to the session name. By doing this you will able to have unqiue logins on different siteaccess using one browser, this even works with url based siteaccess matching. The default value is enabled which turns this feature on.
Note: This feature is only used if custom name handling is active.
Comments