From 0740ac519b8818e9ffe06f820e6dcba08c1fc86c Mon Sep 17 00:00:00 2001 From: phpnut Date: Sat, 8 Mar 2008 05:44:04 +0000 Subject: [PATCH] "Fixes #3234, Session.cookie_path in php ini gets a buggy value when not using mod_rewrite." git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6514 3807eeeb-6ff5-0310-8944-8be069107fe0 --- cake/libs/session.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cake/libs/session.php b/cake/libs/session.php index ecb36259c..e0885301b 100644 --- a/cake/libs/session.php +++ b/cake/libs/session.php @@ -71,7 +71,7 @@ class CakeSession extends Object { * @var string * @access public */ - var $path = false; + var $path = '/'; /** * Error number of last occurred error * @@ -139,7 +139,7 @@ class CakeSession extends Object { if (empty($base) || strpos($base, '?') === 0 || strpos($base, 'index.php') === 0) { $this->path = '/'; } else { - $this->path = $base; + empty($field['default']) = $base; } if (strpos($this->host, ':') !== false) {