summaryrefslogtreecommitdiffstats
path: root/etc/inc/auth.inc
diff options
context:
space:
mode:
authorErmal <eri@pfsense.org>2012-02-08 07:59:09 +0000
committerErmal <eri@pfsense.org>2012-02-08 07:59:09 +0000
commit9252d093fa28e865999b23e47c6b2aab967ccb58 (patch)
tree701c40a28a81a784b65bda309d0347a77c7e1ef9 /etc/inc/auth.inc
parentc58715af2fce30aa338e302587ea6f9416fcd086 (diff)
downloadpfsense-9252d093fa28e865999b23e47c6b2aab967ccb58.zip
pfsense-9252d093fa28e865999b23e47c6b2aab967ccb58.tar.gz
Another try to eliminate the warning 'PHP Warning: Cannot modify header information - headers already sent by (output started at /etc/inc/authgui.inc:201) in /usr/local/www/guiconfig.inc on line 47'
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..a694efb 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