summaryrefslogtreecommitdiff
path: root/lib/util.php
diff options
context:
space:
mode:
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'])) {