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