Alexandre Alapetite 10 år sedan
förälder
incheckning
760ec5f223
1 ändrade filer med 6 tillägg och 6 borttagningar
  1. 6 6
      lib/Minz/Session.php

+ 6 - 6
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);
 	}