isStarted() 공개 정적인 메소드

Indicates whether the the current request includes information on a previously started session.
public static isStarted ( string $name = null ) : boolean
$name string Optional named session configuration.
리턴 boolean Returns `true` if a the request includes a key from a previously created session.
예제 #1
0
 public function testSessionStateResetNamed()
 {
     Session::reset();
     $this->expectException("Configuration `default` has not been defined.");
     $this->assertFalse(Session::isStarted('default'));
 }
예제 #2
0
 public static function initSession()
 {
     static::$_data['session.started'] = Session::isStarted();
 }