X-Git-Url: https://jasonwoof.com/gitweb/?a=blobdiff_plain;f=session.php;h=bd91a5b019e5fcf98fa1c78b919bde3f8939676a;hb=04adc2c02a5de04a859832037fddf08c98ed684a;hp=f79373a5534788c3e3f1c96909e5773d15b8ebcd;hpb=2aea4b7531ab822143cca86baf50ed4d51363444;p=wfpl.git diff --git a/session.php b/session.php index f79373a..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']); } @@ -157,7 +157,7 @@ function logged_in() { -# return username if a session exists and is authenticated +# return true if a session exists and is authenticated function logged_in_as_admin() { if(!session_exists()) { return false;