Fixed: Store cookie in the same filename as the last one

This commit is contained in:
philipp lang 2022-02-19 19:12:33 +01:00
parent 568043530c
commit 8515b1fc05
1 changed files with 2 additions and 1 deletions

View File

@ -23,6 +23,7 @@ class MainCookie extends Authenticator {
unlink($file);
}
$cookieFile = $this->newFileName();
$this->http()->get($this->url.'/ica/pages/login.jsp');
$response = $this->http()->asForm()->post($this->url.'/ica/rest/nami/auth/manual/sessionStartup', [
'Login' => 'API',
@ -37,7 +38,7 @@ class MainCookie extends Authenticator {
throw $e;
}
$this->cookie->save($this->newFileName());
$this->cookie->save($cookieFile);
return $this;
}