SessionConfiguration
class SessionConfiguration implements SessionConfigurationInterface (View source)
Defines the default session configuration generator.
Properties
| protected | $options | An associative array of session ini settings. |
Methods
Constructs a new session configuration instance.
Determines whether a session identifier is on the request.
Returns a list of options suitable for passing to the session storage.
Returns the session cookie name.
Returns the session cookie name without the secure/insecure prefix.
Return the session cookie domain.
Wraps drupal_valid_test_ua().
Details
__construct(array $options = [])
Constructs a new session configuration instance.
bool
hasSession(Request $request)
Determines whether a session identifier is on the request.
This method detects whether a session was started during one of the previous requests from the same user agent. Session identifiers are normally passed along using cookies and hence a typical implementation checks whether the session cookie is on the request.
array
getOptions(Request $request)
Returns a list of options suitable for passing to the session storage.
protected string
getName(Request $request)
Returns the session cookie name.
protected
getUnprefixedName(Request $request)
Returns the session cookie name without the secure/insecure prefix.
protected
getCookieDomain(Request $request)
Return the session cookie domain.
The Set-Cookie response header and its domain attribute are defined in RFC 2109, RFC 2965 and RFC 6265 each one superseding the previous version.
protected string|false
drupalValidTestUa()
Wraps drupal_valid_test_ua().