mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-04-08 18:55:09 +02:00
Fixed the PHP Warnings about the re-start the session.
(cherry picked from commit 1a035873dc79d04ffbf155a874e3eeed8eaa8c20)
This commit is contained in:
parent
c46bdc5087
commit
0ec32cc826
@ -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"])) {
|
||||
|
@ -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'];
|
||||
|
@ -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");
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user