You are here

public function AbstractProxy::setName in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/symfony/http-foundation/Session/Storage/Proxy/AbstractProxy.php \Symfony\Component\HttpFoundation\Session\Storage\Proxy\AbstractProxy::setName()

Sets the session name.

Parameters

string $name:

Throws

\LogicException

File

vendor/symfony/http-foundation/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);
}