diff --git a/lib/util.php b/lib/util.php index 6044fdd92e..d50fa20814 100644 --- a/lib/util.php +++ b/lib/util.php @@ -326,7 +326,8 @@ function common_set_cookie($key, $value, $expiration=0) $value, $expiration, $cookiepath, - $server); + $server, + common_config('site', 'ssl')=='always'); } define('REMEMBERME', 'rememberme');