Archived
1
0

Fix Windows IIS server cookie login problem, thanks to Shadowin

This commit is contained in:
Garvin Hicking
2007-01-04 19:57:11 +00:00
parent 23a4e841e7
commit 6e759ca076
2 changed files with 7 additions and 1 deletions
+6
View File
@@ -15,6 +15,12 @@ Version 1.2 ()
* Allow to call permalinks that end with a "/" the same as if not
ending with a "/" (garvinhicking)
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)
------------------------------------------------------------------------
+1 -1
View File
@@ -563,7 +563,7 @@ function serendipity_JSsetCookie($name, $value) {
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;