Browse Source

fix the unsetting of ot_connect cookies

Olivier Massot 5 years ago
parent
commit
277044ec93
1 changed files with 2 additions and 2 deletions
  1. 2 2
      ot_connect/Classes/Service/OtAuthenticationService.php

+ 2 - 2
ot_connect/Classes/Service/OtAuthenticationService.php

@@ -415,11 +415,11 @@ class OtAuthenticationService extends AbstractAuthenticationService
             // Unset the session cookies (SESSID and BEARER)
             if (isset($_COOKIE['BEARER'])) {
                 unset($_COOKIE['BEARER']);
-                setcookie('BEARER', '', time() - 1, '/');
+                setcookie('BEARER', '', time() - 1, '/', self::COOKIE_DOMAIN);
             }
             if (isset($_COOKIE['SFSESSID'])) {
                 unset($_COOKIE['SFSESSID']);
-                setcookie('SFSESSID', '', time() - 1, '/');
+                setcookie('SFSESSID', '', time() - 1, '/', self::COOKIE_DOMAIN);
             }
 
             $this->pObj->logoff();