diff options
| author | 2015-07-31 00:18:44 +0200 | |
|---|---|---|
| committer | 2015-07-31 00:18:44 +0200 | |
| commit | 8ecc33129e77cf3b26a1ff71b8d38159f85b30b3 (patch) | |
| tree | 1a0e068111ca13f45f80480eaeeba6188e0d526a /lib | |
| parent | 73dce95f457d6e6fb5db320aed5c61298d673eeb (diff) | |
| parent | 760ec5f223c4a18c8e8c8f3ecdf6b7140aa70611 (diff) | |
Merge remote-tracking branch 'origin/MinzSessionCookie' into dev
Diffstat (limited to 'lib')
| -rw-r--r-- | lib/Minz/Session.php | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/lib/Minz/Session.php b/lib/Minz/Session.php index 705aae2ec..de671f173 100644 --- a/lib/Minz/Session.php +++ b/lib/Minz/Session.php @@ -65,12 +65,12 @@ class Minz_Session { * @param $l la durée de vie */ public static function keepCookie($l) { - // Get the script_name (e.g. /p/i/index.php) and keep only the path. - $cookie_dir = empty($_SERVER['REQUEST_URI']) ? '/' : $_SERVER['REQUEST_URI']; - if (substr($cookie_dir, -1) !== '/') { - $cookie_dir = dirname($cookie_dir) . '/'; - } - session_set_cookie_params($l, $cookie_dir, '', false, false); + // Get the script_name (e.g. /p/i/index.php) and keep only the path. + $cookie_dir = empty($_SERVER['REQUEST_URI']) ? '/' : $_SERVER['REQUEST_URI']; + if (substr($cookie_dir, -1) !== '/') { + $cookie_dir = dirname($cookie_dir) . '/'; + } + session_set_cookie_params($l, $cookie_dir, '', false, false); } |
