Beispiel #1
0
 public function handle(Request $request, Response $response, array $config)
 {
     $session = new UserSession();
     $query = "SELECT * from usersession";
     var_dump($session->fetchAll($query));
 }
Beispiel #2
0
 /**
  * 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;
 }