Cartalyst\Sentinel\Sessions\NativeSession::__construct PHP Method

__construct() public method

Creates a new native session driver for Sentinel.
public __construct ( string $key = null ) : void
$key string
return void
    public function __construct($key = null)
    {
        if (isset($key)) {
            $this->key = $key;
        }
        $this->startSession();
    }