public static function createFileBased($idpUrl, $cookieName = 'SHIBALIKE', $sessionPath = null)
    {
        if (empty($sessionPath)) {
            $sessionPath = sys_get_temp_dir();
        }
		$session = SessionBuilder::instance()
			->setName($cookieName)
			->setSavePath($sessionPath)
			->build();
		$stateMgr = new UserlandSessionStateMgr($session);
        $config = new Config();
        $config->idpUrl = $idpUrl;

        return new self($stateMgr, $config);
    }