public function AbstractProxy::setName

Sets the session name.

Parameters

string $name:

File

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

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