destroy() 공개 정적인 메소드

销毁session
public static destroy ( ) : void
리턴 void
예제 #1
0
 /**
  * @covers think\Session::destroy
  *
  * @todo Implement testDestroy().
  */
 public function testDestroy()
 {
     \think\Session::set('sessionnamedestroy', 'sessionvalue');
     \think\Session::destroy();
     $this->assertEmpty($_SESSION['sessionnamedestroy']);
 }