destroySession() public method

Do not call this method directly.
public destroySession ( string $id ) : boolean
$id string session ID
return boolean whether session is destroyed successfully
コード例 #1
0
ファイル: CacheSessionTest.php プロジェクト: howq/yii2
 public function testCacheSession()
 {
     $session = new CacheSession();
     $session->writeSession('test', 'sessionData');
     $this->assertEquals('sessionData', $session->readSession('test'));
     $session->destroySession('test');
     $this->assertEquals('', $session->readSession('test'));
 }