|
NAMECutelyst4Qt6Session - Configuration of the Session Plugin for the Cutelyst Web Framework DESCRIPTIONThe Session plugin for Cutelyst can be used to generate user sessions that are stored on the server side in a session store and on the user side in a session cookie. The name of the session cookie is the name of the application + "_session". CONFIGURATIONThe Session plugin can be configured in the Cutelyst application configuration file in the Cutelyst_Session_Plugin section. expires (integer or string value, default: 2 hours) The expiration duration of the session. Can be given as
time span where the following time units are understood:
If no time unit is specified, generally seconds are assumed. Examples for valid time span specifications: 2 h 2hours 48hr 1y 12month 55s500ms 300ms20s 5day verify_address (boolean value, default: false) If enabled, the plugin will check if the IP address of
the requesting user matches the address stored in the session data. In case of
a mismatch, the session will be deleted.
verify_user_agent (boolean value, default: false) If true, the plugin will check if the user agent of the
requesting user matches the user agent stored in the session data. In case of
a mismatch, the session will be deleted.
cookie_http_only (boolean value, default: true) If true, the session cookie will have the httpOnly flag
set so that the cookie is not accessible to JavaScript's Document.cookie
API.
cookie_secure (boolean value, default: false) If true, the session cookie will have the secure flag set
so that the cookie is only sent to the server with an encrypted request over
the HTTPS protocol.
EXAMPLES[Cutelyst_Session_Plugin]
expires="1 hour"
LOGGING CATEGORYcutelyst.plugin.session SEE ALSOCutelyst4Qt6MemcachedSessionStore(5)
|