public function start() { if ($this->isStarted()) { return; } $id = $this->request->getCookie(self::SESSION_NAME); if (!$this->storage->hasSession($id)) { $id = $this->storage->createSession(); $this->response->setCookie(self::SESSION_NAME, $id, array('Path' => '/')); } $this->id = $id; }