Esempio n. 1
0
 public function __invoke($request, $response, $next)
 {
     \RKA\Session::destroy();
     \RKA\Session::regenerate();
     $response = $next($request, $response);
     return $response;
 }
 public function testDestroy()
 {
     @session_start();
     $this->assertEquals(PHP_SESSION_ACTIVE, session_status());
     Session::destroy();
     $this->assertEquals(PHP_SESSION_NONE, session_status());
 }
 public function testDestroy()
 {
     @session_start();
     $this->assertEquals(PHP_SESSION_ACTIVE, session_status());
     @Session::destroy();
     // silence headers already sent warning
     $this->assertEquals(PHP_SESSION_NONE, session_status());
 }
Esempio n. 4
0
 public function logout()
 {
     return \RKA\Session::destroy();
 }