From 251cb07a5541c3a2d91c474f1da2a3b4cff07034 Mon Sep 17 00:00:00 2001 From: m-lopez-f Date: Fri, 2 Oct 2015 15:24:05 +0200 Subject: [PATCH] Fixed problems with save data in db with Authentication --- pandora_console/include/functions_config.php | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/pandora_console/include/functions_config.php b/pandora_console/include/functions_config.php index 0030e6656c..67ffb15fda 100644 --- a/pandora_console/include/functions_config.php +++ b/pandora_console/include/functions_config.php @@ -339,6 +339,8 @@ function config_update_config () { $error_update[] = __('User'); if (!config_update_value ('rintegria_pass', get_parameter ('rintegria_pass'))) $error_update[] = __('Password'); + if (!config_update_value ('session_timeout', get_parameter ('session_timeout'))) + $error_update[] = __('Session timeout'); ///////////// break; case 'perf': @@ -1318,6 +1320,10 @@ function config_process_config () { ""); } + if (!isset ($config["session_timeout"])) { + config_update_value ('session_timeout', 90); + } + /* Finally, check if any value was overwritten in a form */ config_update_config(); }