Fixed: Store cookie in the same filename as the last one
This commit is contained in:
parent
568043530c
commit
8515b1fc05
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue