summaryrefslogtreecommitdiffstats
path: root/etc
diff options
context:
space:
mode:
authorErmal <eri@pfsense.org>2012-02-08 07:59:42 +0000
committerErmal <eri@pfsense.org>2012-02-08 07:59:42 +0000
commitfa3ee91d6531a39572965d849566f2b40797c7bb (patch)
tree9786046546989ffad26e8b840df89475c59bd38a /etc
parentfbdc4b568453198fda514800286825fa9e74896f (diff)
downloadpfsense-fa3ee91d6531a39572965d849566f2b40797c7bb.zip
pfsense-fa3ee91d6531a39572965d849566f2b40797c7bb.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')
-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 33b9e1a..6918341 100644
--- a/etc/inc/auth.inc
+++ b/etc/inc/auth.inc
@@ -1259,7 +1259,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