protected function startSession() { if (!$this->app['session']->isStarted()) { $this->app['session']->start(); } return $this; }