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