diff options
-rwxr-xr-x | usr/local/www/system_usermanager_settings.php | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/usr/local/www/system_usermanager_settings.php b/usr/local/www/system_usermanager_settings.php index acba7a8..e56d65a 100755 --- a/usr/local/www/system_usermanager_settings.php +++ b/usr/local/www/system_usermanager_settings.php @@ -60,8 +60,12 @@ if ($_POST) { if (!$input_errors) { - $pconfig['session_timeout'] = intval($_POST['session_timeout']); + if($_POST['session_timeout'] && $_POST['session_timeout'] != "0") + $pconfig['session_timeout'] = intval($_POST['session_timeout']); + else + unset($config['system']['webgui']['session_timeout']); + write_config(); pfSenseHeader("system_usermanager_settings.php"); |