diff options
author | PiBa-NL <pba_2k3@yahoo.com> | 2017-02-27 22:33:25 +0100 |
---|---|---|
committer | PiBa-NL <pba_2k3@yahoo.com> | 2017-02-27 22:51:31 +0100 |
commit | 82cd6022de7483d9e05b8a8f02100e5adb4e9f6e (patch) | |
tree | 3e9fde7eda898aa73f385c6cec0a84b834b3c88e /src/usr/local/www/firewall_virtual_ip.php | |
parent | 69860ee4f5ff9f1e5b87bc6fdcb6dfea66062726 (diff) | |
download | pfsense-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/firewall_virtual_ip.php')
-rw-r--r-- | src/usr/local/www/firewall_virtual_ip.php | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/src/usr/local/www/firewall_virtual_ip.php b/src/usr/local/www/firewall_virtual_ip.php index d4ea401..6660e38 100644 --- a/src/usr/local/www/firewall_virtual_ip.php +++ b/src/usr/local/www/firewall_virtual_ip.php @@ -191,17 +191,16 @@ if ($_POST['act'] == "del") { } if (!$input_errors) { - if (!session_id()) { - session_start(); - } + phpsession_begin(); $user = getUserEntry($_SESSION['Username']); if (is_array($user) && userHasPrivilege($user, "user-config-readonly")) { header("Location: firewall_virtual_ip.php"); + phpsession_end(); exit; } + phpsession_end(); - session_commit(); // Special case since every proxyarp vip is handled by the same daemon. if ($a_vip[$_POST['id']]['mode'] == "proxyarp") { |