diff options
-rw-r--r-- | lib/user.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/user.php b/lib/user.php index 9e0e82e79fe..ca8b985cee4 100644 --- a/lib/user.php +++ b/lib/user.php @@ -369,7 +369,7 @@ class OC_User { public static function setMagicInCookie($username, $token){ $secure_cookie = OC_Config::getValue("forcessl", false); setcookie("oc_username", $username, time()+60*60*24*15, '', '', $secure_cookie); - setcookie("oc_token", $token, time()+60*60*24*15, '', '', $secure_cookie); + setcookie("oc_token", $token, time()+60*60*24*15, '', '', $secure_cookie, true); setcookie("oc_remember_login", true, time()+60*60*24*15, '', '', $secure_cookie); } |