Sets the session name.
Parameters
string $name:
Throws
\LogicException
File
- drupal/core/vendor/symfony/http-foundation/Symfony/Component/HttpFoundation/Session/Storage/Proxy/AbstractProxy.php, line 146
Class
- AbstractProxy
- AbstractProxy.
Namespace
Symfony\Component\HttpFoundation\Session\Storage\Proxy
Code
public function setName($name) {
if ($this
->isActive()) {
throw new \LogicException('Cannot change the name of an active session');
}
session_name($name);
}