Fixed problems with sessions.

This commit is contained in:
m-lopez-f 2016-11-16 15:51:14 +01:00
parent 697dd92c74
commit 58bc7e9278
1 changed files with 3 additions and 5 deletions

View File

@ -112,6 +112,9 @@ require_once ($ownDir. 'functions_config.php');
// We need a timezone BEFORE calling config_process_config.
// If not we will get ugly warnings. Set Europe/Madrid by default
// Later will be replaced by the good one.
if (!isset($config["homeurl_static"])) {
$config["homeurl_static"] = $config["homeurl"];
}
date_default_timezone_set("Europe/Madrid");
@ -124,11 +127,6 @@ if(session_id() == '') {
$resultado = session_start();
}
if (!isset($config["homeurl_static"])) {
$config["homeurl_static"] = $config["homeurl"];
}
// Set a the system timezone default
if ((!isset($config["timezone"])) OR ($config["timezone"] == "")) {
$config["timezone"] = "Europe/Berlin";