summaryrefslogtreecommitdiffstats
path: root/src/usr/local/www/csrf/csrf-magic.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/csrf/csrf-magic.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/csrf/csrf-magic.php')
-rw-r--r--src/usr/local/www/csrf/csrf-magic.php4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/usr/local/www/csrf/csrf-magic.php b/src/usr/local/www/csrf/csrf-magic.php
index 58f4eba..77a55fb 100644
--- a/src/usr/local/www/csrf/csrf-magic.php
+++ b/src/usr/local/www/csrf/csrf-magic.php
@@ -13,6 +13,8 @@
* This library is PHP4 and PHP5 compatible.
*/
+include_once('phpsessionmanager.inc');
+
// CONFIGURATION:
/**
@@ -348,7 +350,7 @@ function csrf_conf($key, $val) {
*/
function csrf_start() {
if ($GLOBALS['csrf']['auto-session'] && !session_id()) {
- session_start();
+ phpsession_begin();
}
}
OpenPOWER on IntegriCloud