public function AbstractProxy::setId

Sets the session ID.

Parameters

string $id:

File

drupal/core/vendor/symfony/http-foundation/Symfony/Component/HttpFoundation/Session/Storage/Proxy/AbstractProxy.php, line 103

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);
}