destroy() public method

public destroy ( string $sessionId = null ) : boolean
$sessionId string Session variable name [Optional]
return boolean
Example #1
0
 public function testShouldDestroySession()
 {
     $sessionId = 'abcdef123457';
     $session = new SessionHandler($this->getConfig());
     $data = serialize(['abc' => 345, 'def' => ['foo' => 'bar'], 'zyx' => 'xyz']);
     $this->tester->haveInAerospike($sessionId, base64_encode($data));
     $session->destroy($sessionId);
     $this->tester->dontSeeInAerospike($sessionId);
 }