Fixed Login Loop (session_save_path).
authorJoe Hunt <joe.hunt.consulting@gmail.com>
Wed, 18 Apr 2007 10:41:27 +0000 (10:41 +0000)
committerJoe Hunt <joe.hunt.consulting@gmail.com>
Wed, 18 Apr 2007 10:41:27 +0000 (10:41 +0000)
config.php

index 516350a632b7132b1847594dce13fab1f46b0ba3..e25272473df696d488654d7678d9b9009d5178b3 100644 (file)
@@ -9,13 +9,21 @@
        |                                                   |
        \--------------------------------------------------*/
 
+/*
+       // Make sure this directory exists and is writable!
     $session_save_path = dirname(__FILE__).'/tmp/';
 
+*/
+       $session_save_path = session_save_path();
+       if (strpos($session_save_path, ";") !== false)
+               $session_save_path = substr($session_save_path, strpos($session_save_path, ";") + 1);
+
        if (isset($session_save_path))
        {
                session_save_path($session_save_path);
                unset($session_save_path);
     }
+
     include_once($path_to_root . "/config_db.php");
     include_once($path_to_root . "/includes/lang/language.php");