Selaa lähdekoodia

fix the unsetting of ot_connect cookies

Olivier Massot 5 vuotta sitten
vanhempi
commit
277044ec93
1 muutettua tiedostoa jossa 2 lisäystä ja 2 poistoa
  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();