Sets the session name.
\LogicException
public function setName(string $name) : void { if ($this->isActive()) { throw new \LogicException('Cannot change the name of an active session.'); } session_name($name); }