function SessionConfiguration::__construct
Same name in other branches
- 9 core/lib/Drupal/Core/Session/SessionConfiguration.php \Drupal\Core\Session\SessionConfiguration::__construct()
- 8.9.x core/lib/Drupal/Core/Session/SessionConfiguration.php \Drupal\Core\Session\SessionConfiguration::__construct()
- 11.x core/lib/Drupal/Core/Session/SessionConfiguration.php \Drupal\Core\Session\SessionConfiguration::__construct()
Constructs a new session configuration instance.
Parameters
array $options: An associative array of session ini settings.
See also
\Symfony\Component\HttpFoundation\Session\Storage\NativeSessionStorage::__construct()
http://php.net/manual/session.configuration.php
https://www.php.net/manual/session.security.ini.php
File
-
core/
lib/ Drupal/ Core/ Session/ SessionConfiguration.php, line 27
Class
- SessionConfiguration
- Defines the default session configuration generator.
Namespace
Drupal\Core\SessionCode
public function __construct($options = []) {
// Provide sensible defaults for sid_length, sid_bits_per_character and
// name_suffix.
// @see core/assets/scaffold/files/default.services.yml
$this->options = $options + [
'sid_length' => 48,
'sid_bits_per_character' => 6,
'name_suffix' => '',
];
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.