From: Jason Woofenden Date: Fri, 27 Sep 2013 03:26:09 +0000 (-0400) Subject: set path on session cookie X-Git-Url: https://jasonwoof.com/gitweb/?a=commitdiff_plain;h=e4b8789f2bfc73fe01549bab2ab390166ac9a514;p=wfpl.git set path on session cookie --- diff --git a/session.php b/session.php index 25eb46f..bd91a5b 100644 --- a/session.php +++ b/session.php @@ -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']); }