JasonWoof Got questions, comments, patches, etc.? Contact Jason Woofenden
set path on session cookie
authorJason Woofenden <jason@jasonwoof.com>
Fri, 27 Sep 2013 03:26:09 +0000 (23:26 -0400)
committerJason Woofenden <jason@jasonwoof.com>
Fri, 27 Sep 2013 03:31:00 +0000 (23:31 -0400)
session.php

index 25eb46f..bd91a5b 100644 (file)
@@ -69,7 +69,7 @@ function session_touch($length = false) {
        }
        $expires = time() + $length;
 
-       header('Set-Cookie: session_key=' . $GLOBALS['session_key']);
+       header('Set-Cookie: session_key=' . $GLOBALS['session_key'] . '; Path=/');
 
        db_update('wfpl_sessions', 'expires', $expires, 'where id=%i', $GLOBALS['session_id']);
 }