summaryrefslogtreecommitdiffstats
path: root/etc/inc/auth.inc
diff options
context:
space:
mode:
authorErmal <eri@pfsense.org>2012-02-07 20:35:51 +0000
committerErmal <eri@pfsense.org>2012-02-07 20:35:51 +0000
commit9b2de7e2a6afab31e1a62ac8d54435975a22a9a7 (patch)
tree6d081f3516c615f00853fb0b6aec4b40237a333b /etc/inc/auth.inc
parent2890cae51a424519662922e558bc939077b66c7c (diff)
downloadpfsense-9b2de7e2a6afab31e1a62ac8d54435975a22a9a7.zip
pfsense-9b2de7e2a6afab31e1a62ac8d54435975a22a9a7.tar.gz
Check if a session already exists to avoid errors issued by php on sesion_start being called on existing session
Diffstat (limited to 'etc/inc/auth.inc')
-rw-r--r--etc/inc/auth.inc3
1 files changed, 2 insertions, 1 deletions
diff --git a/etc/inc/auth.inc b/etc/inc/auth.inc
index 8d0dbd4..696f9f1 100644
--- a/etc/inc/auth.inc
+++ b/etc/inc/auth.inc
@@ -1287,7 +1287,8 @@ function authenticate_user($username, $password, $authcfg = NULL) {
function session_auth() {
global $HTTP_SERVER_VARS, $config, $_SESSION, $page;
- session_start();
+ if (session_id())
+ session_start();
/* Validate incoming login request */
if (isset($_POST['login'])) {
OpenPOWER on IntegriCloud