Session save path now fully supported
[mailer.git] / inc / session.php
index 7d609e44eeedfd985d77fc5440ee477cf55b11c8..d0e15a3f62661868630328334abab9cb0bd7cb8b 100644 (file)
@@ -45,6 +45,12 @@ if (empty($VIEW))  $VIEW  = 0;
 // Skip updating of cookies when viewing a banner
 if (($VIEW == 1) && ($_SERVER['PHP_SELF'])) return;
 
+// Set session save path if set
+if (!empty($_CONFIG['session_save_path'])) {
+       // Please make sure this valid!
+       @session_save_path($_CONFIG['session_save_path']);
+} // END - if
+
 // Start the session
 @session_start();
 global $PHPSESSID;