summaryrefslogtreecommitdiff
path: root/lib/util.php
diff options
context:
space:
mode:
authorEvan Prodromou <evan@status.net>2010-01-28 01:24:00 -0500
committerEvan Prodromou <evan@status.net>2010-01-28 01:24:00 -0500
commit1ba8045a9b318fd19fb55d2c469bd23a3976c2e8 (patch)
tree626a40084085ffa52d1f0c93154f42519d9e368d /lib/util.php
parenta85a3ddc725a99ea182e86ec65f6be574752b18f (diff)
set session cookie correctly
Diffstat (limited to 'lib/util.php')
-rw-r--r--lib/util.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/util.php b/lib/util.php
index 4312f9876..c6dc4b43a 100644
--- a/lib/util.php
+++ b/lib/util.php
@@ -178,7 +178,7 @@ function common_ensure_session()
}
if (isset($id)) {
session_id($id);
- setcookie(session_name(), $id);
+ setcookie(session_name(), $id, 0, common_config('site', 'path'));
}
@session_start();
if (!isset($_SESSION['started'])) {