Fixed the PHP Warnings about the re-start the session.

(cherry picked from commit 1a035873dc)
This commit is contained in:
mdtrooper 2015-05-06 18:42:42 +02:00
parent c46bdc5087
commit 0ec32cc826
3 changed files with 9 additions and 3 deletions

View File

@ -120,7 +120,9 @@ config_process_config();
config_prepare_session(); config_prepare_session();
require_once ($config["homedir"].'/include/load_session.php'); require_once ($config["homedir"].'/include/load_session.php');
$resultado = session_start(); if(session_id() == '') {
$resultado = session_start();
}
if (!isset($config["homeurl_static"])) { if (!isset($config["homeurl_static"])) {

View File

@ -1691,7 +1691,9 @@ function check_login ($output = true) {
} }
else { else {
require_once($config["homedir"].'/mobile/include/user.class.php'); require_once($config["homedir"].'/mobile/include/user.class.php');
session_start (); if(session_id() == '') {
session_start ();
}
session_write_close (); session_write_close ();
if (isset($_SESSION['user'])) { if (isset($_SESSION['user'])) {
$user = $_SESSION['user']; $user = $_SESSION['user'];

View File

@ -66,7 +66,9 @@ if ((! file_exists ("include/config.php")) || (! is_readable ("include/config.ph
} }
// Real start // Real start
session_start (); if(session_id() == '') {
session_start ();
}
require_once ("include/config.php"); require_once ("include/config.php");