summaryrefslogtreecommitdiffstats
path: root/src/usr/local/www/system_usermanager_passwordmg.php
diff options
context:
space:
mode:
authorPiBa-NL <pba_2k3@yahoo.com>2017-02-27 22:33:25 +0100
committerPiBa-NL <pba_2k3@yahoo.com>2017-02-27 22:51:31 +0100
commit82cd6022de7483d9e05b8a8f02100e5adb4e9f6e (patch)
tree3e9fde7eda898aa73f385c6cec0a84b834b3c88e /src/usr/local/www/system_usermanager_passwordmg.php
parent69860ee4f5ff9f1e5b87bc6fdcb6dfea66062726 (diff)
downloadpfsense-82cd6022de7483d9e05b8a8f02100e5adb4e9f6e.zip
pfsense-82cd6022de7483d9e05b8a8f02100e5adb4e9f6e.tar.gz
phpsessionmanager, this helps starting and committing the php session preventing other requests from being blocked longer than required.
Diffstat (limited to 'src/usr/local/www/system_usermanager_passwordmg.php')
-rw-r--r--src/usr/local/www/system_usermanager_passwordmg.php12
1 files changed, 4 insertions, 8 deletions
diff --git a/src/usr/local/www/system_usermanager_passwordmg.php b/src/usr/local/www/system_usermanager_passwordmg.php
index 87cc791..9c81b02 100644
--- a/src/usr/local/www/system_usermanager_passwordmg.php
+++ b/src/usr/local/www/system_usermanager_passwordmg.php
@@ -45,16 +45,14 @@ if (isset($_POST['save'])) {
}
if (!$input_errors) {
- if (!session_id()) {
- session_start();
- }
+ phpsession_begin();
// all values are okay --> saving changes
$userent =& $config['system']['user'][$userindex[$_SESSION['Username']]];
local_user_set_password($userent, $_POST['passwordfld1']);
local_user_set($userent);
unset($userent);
- session_commit();
+ phpsession_end(true);
write_config();
@@ -62,9 +60,7 @@ if (isset($_POST['save'])) {
}
}
-if (!session_id()) {
- session_start();
-}
+phpsession_begin();
/* determine if user is not local to system */
$islocal = false;
@@ -74,7 +70,7 @@ foreach ($config['system']['user'] as $user) {
}
}
-session_commit();
+phpsession_end(true);
include("head.inc");
OpenPOWER on IntegriCloud