Got questions, comments, patches, etc.?
Contact Jason Woofenden
gitweb
/
wfpl.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
metaform css: fix bolding of first caption
[wfpl.git]
/
session.php
diff --git
a/session.php
b/session.php
index
f79373a
..
bd91a5b
100644
(file)
--- a/
session.php
+++ b/
session.php
@@
-69,7
+69,7
@@
function session_touch($length = false) {
}
$expires = time() + $length;
}
$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']);
}
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;
function logged_in_as_admin() {
if(!session_exists()) {
return false;