* $Id$
*/
+require_once(SM_PATH . 'config/config.php');
+
+/* set the name of the session cookie */
+if(isset($session_name) && $session_name) {
+ ini_set('session.name' , $session_name);
+} else {
+ ini_set('session.name' , 'SQMSESSID');
+}
+
/* If magic_quotes_runtime is on, SquirrelMail breaks in new and creative ways.
* Force magic_quotes_runtime off.
* chilts@birdbrained.org - I put it here in the hopes that all SM code includes this.
* ** Note this means that for the 1.3.2 release, we should probably
* recommend that people set session.auto_start=0 to avoid this altogether.
*/
+
session_write_close();
/* SquirrelMail required files. */
require_once(SM_PATH . 'class/mime.class.php');
+require_once(SM_PATH . 'config/config.php');
+
+/* set the name of the session cookie */
+if(isset($session_name) && $session_name) {
+ ini_set('session.name' , $session_name);
+} else {
+ ini_set('session.name' , 'SQMSESSID');
+}
session_start();
unset($theme);
$theme=array();
-require_once(SM_PATH . 'config/config.php');
require_once(SM_PATH . 'include/load_prefs.php');
require_once(SM_PATH . 'functions/page_header.php');
require_once(SM_PATH . 'functions/prefs.php');