public function close() { if ($this->started !== true) { throw new Exception\SessionNotStartedException('The session has not been started yet.', 1218034662); } $this->started = false; }