aboutsummaryrefslogtreecommitdiff
path: root/lib/Minz/Session.php
diff options
context:
space:
mode:
authorGravatar Alexandre Alapetite <alexandre.alapetite@alexandra.dk> 2015-07-31 00:17:32 +0200
committerGravatar Alexandre Alapetite <alexandre.alapetite@alexandra.dk> 2015-07-31 00:17:32 +0200
commit760ec5f223c4a18c8e8c8f3ecdf6b7140aa70611 (patch)
tree1a0e068111ca13f45f80480eaeeba6188e0d526a /lib/Minz/Session.php
parent59daed3d4eca6bf6260a8dc422c54f470895ac63 (diff)
Whitespace
Diffstat (limited to 'lib/Minz/Session.php')
-rw-r--r--lib/Minz/Session.php12
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);
}