|
|
|
@ -287,7 +287,7 @@ class Session implements IUserSession, Emitter { |
|
|
|
*/ |
|
|
|
public function setMagicInCookie($username, $token) { |
|
|
|
$secureCookie = \OC::$server->getRequest()->getServerProtocol() === 'https'; |
|
|
|
$expires = time() + \OC_Config::getValue('remember_login_cookie_lifetime', 60 * 60 * 24 * 15); |
|
|
|
$expires = time() + \OC::$server->getConfig()->getSystemValue('remember_login_cookie_lifetime', 60 * 60 * 24 * 15); |
|
|
|
setcookie("oc_username", $username, $expires, \OC::$WEBROOT, '', $secureCookie, true); |
|
|
|
setcookie("oc_token", $token, $expires, \OC::$WEBROOT, '', $secureCookie, true); |
|
|
|
setcookie("oc_remember_login", "1", $expires, \OC::$WEBROOT, '', $secureCookie, true); |
|
|
|
|