From 7d07190af1bda3ae1ec0e899a9997c659532ed29 Mon Sep 17 00:00:00 2001 From: Bharat Mediratta Date: Sat, 8 Jan 2011 16:58:04 -0800 Subject: Turn off session.use_trans_sid -- that feature attempts to inject session ids into generated URLs and forms, but it doesn't interoperate will with Gallery's Ajax code. --- index.php | 5 +++++ installer/index.php | 5 +++++ 2 files changed, 10 insertions(+) diff --git a/index.php b/index.php index 68000ef8..8115ac13 100644 --- a/index.php +++ b/index.php @@ -35,6 +35,11 @@ error_reporting(0); // and logging. You can turn off Kohana errors in application/config/config.php ini_set("display_errors", false); +// Turn off session.use_trans_sid -- that feature attempts to inject session ids +// into generated URLs and forms, but it doesn't interoperate will with Gallery's +// Ajax code. +ini_set("session.use_trans_sid", false); + define("EXT", ".php"); define("DOCROOT", getcwd() . "/"); define("KOHANA", "index.php"); diff --git a/installer/index.php b/installer/index.php index 75d6fe5b..fea9527a 100644 --- a/installer/index.php +++ b/installer/index.php @@ -26,6 +26,11 @@ if (version_compare(PHP_VERSION, "5.2.3", "<")) { exit; } +// Turn off session.use_trans_sid -- that feature attempts to inject session ids +// into generated URLs and forms, but it doesn't interoperate will with Gallery's +// Ajax code. +ini_set("session.use_trans_sid", false); + require(DOCROOT . "installer/installer.php"); if (PHP_SAPI == "cli") { include("cli.php"); -- cgit v1.2.3