소스 검색

fix the unsetting of ot_connect cookies

Olivier Massot 5 년 전
부모
커밋
277044ec93
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  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();