From 4111fcf5307829b19b95fbb499addddff46264af Mon Sep 17 00:00:00 2001 From: Ermal Date: Thu, 3 Jan 2013 22:50:26 +0000 Subject: Always commit the session fast to allow other consumers to proceed to their requests. This unbreaks now the lock up the GUI had allowing only one action from same source per time. Now even if you run a command that blocks indefinitely for example the GUI want lock anymore but allow you to proceed to other actions --- usr/local/www/system_usermanager_passwordmg.php | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'usr/local/www/system_usermanager_passwordmg.php') diff --git a/usr/local/www/system_usermanager_passwordmg.php b/usr/local/www/system_usermanager_passwordmg.php index 0d64599..895d28d 100644 --- a/usr/local/www/system_usermanager_passwordmg.php +++ b/usr/local/www/system_usermanager_passwordmg.php @@ -64,12 +64,17 @@ if (isset($_POST['save'])) { } } +if (!session_id()) + session_start(); + /* determine if user is not local to system */ $islocal = false; foreach($config['system']['user'] as $user) if($user['name'] == $_SESSION['Username']) $islocal = true; +session_commit(); + include("head.inc"); ?> -- cgit v1.1