Documentation

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
author

Fabien Potencier fabien@symfony.com

final

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

Methods

getSessionOptions()

private getSessionOptions(array<string|int, mixed> $sessionOptions) : array<string|int, mixed>
Parameters
$sessionOptions : array<string|int, mixed>
Return values
array<string|int, mixed>

Search results