|
@@ -429,15 +429,11 @@ class OtAuthenticationService extends AbstractAuthenticationService
|
|
|
* Unset a cookie by reducing its expiration date
|
|
* Unset a cookie by reducing its expiration date
|
|
|
*
|
|
*
|
|
|
* @param string $name
|
|
* @param string $name
|
|
|
- * @return bool
|
|
|
|
|
*/
|
|
*/
|
|
|
- protected function unset_cookie(string $name): bool
|
|
|
|
|
|
|
+ protected function unset_cookie(string $name)
|
|
|
{
|
|
{
|
|
|
- $res = setcookie($name, '', 1, '/', $_SERVER['HTTP_HOST']);
|
|
|
|
|
- if (!$res) {
|
|
|
|
|
- $this->writeLogMessage('Error while unsetting ' . $name . ' cookie');
|
|
|
|
|
- }
|
|
|
|
|
- return $res;
|
|
|
|
|
|
|
+ setcookie($name, '', 1, '/', $_SERVER['HTTP_HOST']); // for custom domains (not in .opentalent.fr)
|
|
|
|
|
+ setcookie($name, '', 1, '/', self::COOKIE_DOMAIN); // for opentalent.fr subdomains
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
/**
|