* Check user session state and validity (expiration)
*
* @param array $cookie The $_COOKIE array
- * @param string $webPath Path on the server in which the cookie will be available on
* @param string $clientIpId Client IP address identifier
* @param string $token Session token
*
* @return bool true if the user session is valid, false otherwise
*/
- public function checkLoginState($cookie, $webPath, $clientIpId, $token)
+ public function checkLoginState($cookie, $clientIpId, $token)
{
if (! $this->configManager->exists('credentials.login')) {
// Shaarli is not configured yet
if ($this->sessionManager->hasSessionExpired()
|| $this->sessionManager->hasClientIpChanged($clientIpId)
) {
- $this->sessionManager->logout($webPath);
+ $this->sessionManager->logout();
$this->isLoggedIn = false;
return;
}