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

This commit is contained in:
mdtrooper 2015-05-06 18:42:42 +02:00
parent d2e57f2ec8
commit 1a035873dc
3 changed files with 9 additions and 3 deletions

View File

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

View File

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

View File

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