public function handle(Request $request, Response $response, array $config) { $session = new UserSession(); $query = "SELECT * from usersession"; var_dump($session->fetchAll($query)); }
/** * Destroy the session and clear the user information. * * @return boolean */ public function clearIdentity() { UserSession::create()->delete(array('user_id' => $this->getUserId())); Session::expireSessionCookie(); return true; }