SessionListener
extends AbstractSessionListener
in package
Sets the session in the request.
When the passed container contains a "session_storage" entry which holds a NativeSessionStorage instance, the "cookie_secure" option will be set to true whenever the current main request is secure.
Tags
Table of Contents
- NO_AUTO_CACHE_CONTROL_HEADER = 'Symfony-Session-NoAutoCacheControl'
- $debug : mixed
- $sessionOptions : array<string, mixed>
- $sessionUsageStack : mixed
- onKernelRequest() : mixed
- getSession() : SessionInterface|null
- getSessionOptions() : array<string|int, mixed>
Constants
NO_AUTO_CACHE_CONTROL_HEADER
public
mixed
NO_AUTO_CACHE_CONTROL_HEADER
= 'Symfony-Session-NoAutoCacheControl'
Properties
$debug
private
mixed
$debug
$sessionOptions
private
array<string, mixed>
$sessionOptions
$sessionUsageStack
private
mixed
$sessionUsageStack
= []
Methods
onKernelRequest()
public
onKernelRequest(RequestEvent $event) : mixed
Parameters
- $event : RequestEvent
Return values
mixed —getSession()
protected
getSession() : SessionInterface|null
Return values
SessionInterface|null —getSessionOptions()
private
getSessionOptions(array<string|int, mixed> $sessionOptions) : array<string|int, mixed>
Parameters
- $sessionOptions : array<string|int, mixed>