site.ini [Session]
The block [Session] of settings/site.ini, with 14 setting(s).
Never edit settings/site.ini itself: an update replaces it. Put the settings you change in an override, which wins over the shipped file:
settings/override/site.ini.append.phpfor every siteaccess,settings/siteaccess/<siteaccess>/site.ini.append.phpfor one siteaccess,extension/<extension>/settings/site.ini.append.phpin an extension (read when the extension is active).
RememberMeTimeout
"Remember me" feature of the login.
Number of seconds a session cookie will last,
if an user wants to store current session to the cookie
should click on "Remember me" checkbox on login page.
Empty or 0 means this ability will be disabled and CookieTimeout will be used.
360 days, and the box is checked on the login forms by default: browsers that drop
browser-session cookies on their own (iOS Safari and Chrome) would otherwise sign the
user out. The lifetime is kept for the whole sign-in, also when the session id changes
later (the second step of 2FA). Keep SessionTimeout at least as long.
Default: 31104000.
# settings/override/site.ini.append.php
[Session]
RememberMeTimeout=31104000
*/ ?>Handler
Exponential legacy session handler (class name) : not applicable if using the symfony stack
When empty uses ezpSessionHandlerPHP, a session handler that lets php remain in control
of the session handling (def: files, as defined by session.save_handler in php.ini)
To get back old behavior for logged in/anonymous count & session clearing, use ezpSessionHandlerDB
and enable ForceStart setting.
Default: empty.
# settings/override/site.ini.append.php
[Session]
Handler=
*/ ?>SessionTimeout
Number of seconds a session will last when not used, 360 days (as RememberMeTimeout:
the server keeps an idle session as long as a Remember me cookie can bring it back;
3 days, the earlier standard, signed such users out after a long weekend)
Overwrites session.gc_maxlifetime when used with ezpSessionHandlerPHP
Default: 31104000.
# settings/override/site.ini.append.php
[Session]
SessionTimeout=31104000
*/ ?>ActivityTimeout
DB (ezpSessionHandlerDB) Handler specific settings
Number of seconds before a session is considered inactive/logged out, 1 hour is standard
Default: 3600.
# settings/override/site.ini.append.php
[Session]
ActivityTimeout=3600
*/ ?>ForceStart
Backward compatibility settings: not applicable if using the symfony stack
Makes session always start even if not needed (for anonymous users that just browse the site)
by default it will not start before it is used
Default: disabled.
# settings/override/site.ini.append.php
[Session]
ForceStart=disabled
*/ ?>SessionNameHandler
Decides how the name of the session value is handled.
Possible values are:
default - Let PHP decide the session name, this also rules
out the possiblity for per-siteaccess sessions.
custom - Use SessionNamePrefix for name. per-siteaccess sessions are possible.
Default: default.
# settings/override/site.ini.append.php
[Session]
SessionNameHandler=default
*/ ?>SessionNamePrefix
The name of the session ID, is prefixed with the current
siteaccess to provide login per siteaccess.
Only alphanumeric characters are allowed (ref: php.net/session_name)
Note: Will only work if SessionNameHandler is set to custom
Default: eZSESSID.
# settings/override/site.ini.append.php
[Session]
SessionNamePrefix=eZSESSID
*/ ?>SessionNamePerSiteAccess
Whether the session name should be unique per siteaccess.
By enabling this you will be able to get one unique login per siteaccess.
Session name is md5 encoded to avoid issues with non alphanumeric characters.
Note: Will only work if SessionNameHandler is set to custom
Default: enabled.
# settings/override/site.ini.append.php
[Session]
SessionNamePerSiteAccess=enabled
*/ ?>CookieAlwaysAddToHttpResponse
Optional settings for override php.ini session cookie settings
Lifetime of the session cookie, defined in seconds.
Leaving the field empty or undefined means to use the default PHP setting
- PHP setting: session.cookie_lifetime
CookieTimeout=<int>
Example for 6 minutes
CookieTimeout=360
Path on the domain where the cookie will work. Use a single slash ('/') for all paths on the domain.- PHP setting: session.cookie_path
CookiePath=<string>
Cookie domain, for example 'www.php.net'. To make cookies visible on all subdomains then the
domain must be prefixed with a dot like '.php.net'.- PHP setting: session.cookie_domain
CookieDomain=<string>
If <true> cookie will only be sent over secure connections. <auto>, the
default, marks it Secure whenever the request itself came over HTTPS.
CookieSecure=auto|false|true
Tells browser to not allow scripts to access cookie. Default: true.
CookieHttponly=true|false
SameSite attribute of the session cookie: Lax (default), Strict, None
(only honoured together with Secure) or empty to send none.
The older name SameSite (used by LoveStack) is still read when CookieSameSite is not set,
and noted once per request as deprecated (var/log/deprecated.log); rename it to CookieSameSite.
CookieSameSite=Lax
enabled sends the session cookie with every response, not only when the session starts, for a load balancer
that keeps a user on one server by the session id in the cookie. Same name, value and flags as the session
cookie; only once a session is running, never to a visitor without one. Such a response is sent with
Cache-Control: private, so no shared cache (proxy, CDN, service worker) keeps the session id. Default: disabled.
Default: disabled.
# settings/override/site.ini.append.php
[Session]
CookieAlwaysAddToHttpResponse=disabled
*/ ?>BasketCleanup
Controls how baskets are cleaned up when session expires.
It can take on these values:
- cronjob - Cleanup values in a cronjob, Note: runcronjobs.php must be run
- pageload - Cleanup on pageload when the session expires (Controlled by PHP)
Default: cronjob.
# settings/override/site.ini.append.php
[Session]
BasketCleanup=cronjob
*/ ?>BasketCleanupTime
Controls the number of seconds the cleanup can run
The default is 2 minutes
Default: 120.
# settings/override/site.ini.append.php
[Session]
BasketCleanupTime=120
*/ ?>BasketCleanupIdleTime
Controls how many seconds the cleanup will stay idle between
operations. This can be increased to help keep the load down
Default: 2.
# settings/override/site.ini.append.php
[Session]
BasketCleanupIdleTime=2
*/ ?>BasketCleanupFetchLimit
The maximum number of basket entries it will fetch in one batch
Can be increased to improve the amount of time it uses for each
cronjob run or decreased to reduce memory usage and load on server.
Default: 3000.
# settings/override/site.ini.append.php
[Session]
BasketCleanupFetchLimit=3000
*/ ?>BasketCleanupAverageFrequency
Controls how often baskets are cleaned up in the cronjob
A value of 10 means it will clean up in average 1 out of
10 times.
Default: 10.
# settings/override/site.ini.append.php
[Session]
BasketCleanupAverageFrequency=10
*/ ?>Related
Generated by ./console exp:help:examples from settings/site.ini. Do not edit this page: change the source and generate again (how). Free documentation: GFDL 1.3 or later.