commit 50b152f15652917d49ea2ae358d8bb8f51b0c99c
parent ca31df6d35808289f94ae25c3696c369ee40d420
Author: Jan Dankert <devnull@localhost>
Date: Thu, 4 Jan 2018 23:17:31 +0100
Pfad für Cookies setzen, da die Cookies sonst nur im API-Pfad sichtbar wären.
Diffstat:
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/modules/cms-core/action/LoginAction.class.php b/modules/cms-core/action/LoginAction.class.php
@@ -936,8 +936,8 @@ class LoginAction extends Action
// Cookie setzen
$cookieLifetime = 60*60*24*30*12*2; // 2 Jahre.
- setcookie('or_username',$loginName ,time()+$cookieLifetime );
- setcookie('or_dbid' ,$this->getRequestVar('dbid'),time()+$cookieLifetime );
+ setcookie('or_username',$loginName ,time()+$cookieLifetime,'/' );
+ setcookie('or_dbid' ,$this->getRequestVar('dbid'),time()+$cookieLifetime,'/');
// Authentifzierungs-Module.
$modules = explode(',',$conf['security']['modules']['authenticate']);