From 06f9d748e29edea60b6d4d14dd8c51b1cef6c407 Mon Sep 17 00:00:00 2001 From: predominant Date: Sun, 4 Jul 2010 22:35:40 +1000 Subject: [PATCH] Fix session path/base for init() --- cake/libs/cake_session.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/cake/libs/cake_session.php b/cake/libs/cake_session.php index c76659b3d..6a3f45010 100644 --- a/cake/libs/cake_session.php +++ b/cake/libs/cake_session.php @@ -171,7 +171,9 @@ class CakeSession { ClassRegistry::init($settings); } if ($start === true) { - if (!empty($base)) { + if (empty($base)) { + self::$path = '/'; + } else { self::$path = $base; if (strpos($base, 'index.php') !== false) { self::$path = str_replace('index.php', '', $base);