/** * @return bool|mixed $sessionId */ public function getSessionId() { if ($this->sessionManager->sessionExists()) { return $this->sessionId; } return false; }
public function onBootstrap(Event $e) { $session = new SessionManager(); if (!$session->sessionExists()) { $session->start(); } }