Version 1.1.1 ()
------------------------------------------------------------------------
+ * Fix a bug in sending the right login session cookies on Windows IIS
+ servers. Major thanks to Shadowin from the forums!
+
Version 1.1 (December 28th, 2006)
------------------------------------------------------------------------
function serendipity_setCookie($name,$value) {
global $serendipity;
- $secure = !empty($_SERVER['HTTPS']) ? true : false;
+ $secure = (strtolower($_SERVER['HTTPS']) == 'on') ? true : false;
setcookie("serendipity[$name]", $value, time()+60*60*24*30, $serendipity['serendipityHTTPPath'], $_SERVER['HTTP_HOST'], $secure);
$_COOKIE[$name] = $value;
$serendipity['COOKIE'][$name] = $value;