]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
set session cookie correctly
authorEvan Prodromou <evan@status.net>
Thu, 28 Jan 2010 06:24:00 +0000 (01:24 -0500)
committerEvan Prodromou <evan@status.net>
Thu, 28 Jan 2010 06:24:00 +0000 (01:24 -0500)
lib/util.php

index 4312f9876b36ecf1916a972b9985d093909c6c5b..c6dc4b43aa2b99b177ddee23d1b426be4fc8931b 100644 (file)
@@ -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'])) {