lithium\storage\Session::isStarted PHP Méthode

isStarted() public static méthode

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.
Résultat boolean Returns `true` if a the request includes a key from a previously created session.
    public static function isStarted($name = null)
    {
        return is_object($adapter = static::adapter($name)) ? $adapter->isStarted() : false;
    }

Usage Example

 public function testSessionStateResetNamed()
 {
     Session::reset();
     $this->expectException("Configuration `default` has not been defined.");
     $this->assertFalse(Session::isStarted('default'));
 }
All Usage Examples Of lithium\storage\Session::isStarted