summaryrefslogtreecommitdiffstats
path: root/usr/local/captiveportal/index.php
diff options
context:
space:
mode:
authorErmal <eri@pfsense.org>2011-01-18 22:21:11 +0000
committerErmal <eri@pfsense.org>2011-01-18 22:21:11 +0000
commit532cb894992f00952581ae913646891829ffc3fa (patch)
treee407d835fc4be75c2e739a1a34ff58918f23af72 /usr/local/captiveportal/index.php
parent85e3f445b0587d50504e2526208936981476a38f (diff)
downloadpfsense-532cb894992f00952581ae913646891829ffc3fa.zip
pfsense-532cb894992f00952581ae913646891829ffc3fa.tar.gz
Ticket #836 Ticket #1194 and http://forum.pfsense.org/index.php/topic,32175.msg166263.html#msg166263 suggest that now that CP actions are quite fast its better to send the logout data before actually disconnecting the client.
Diffstat (limited to 'usr/local/captiveportal/index.php')
-rwxr-xr-xusr/local/captiveportal/index.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/usr/local/captiveportal/index.php b/usr/local/captiveportal/index.php
index 2d7883c..82bba8c 100755
--- a/usr/local/captiveportal/index.php
+++ b/usr/local/captiveportal/index.php
@@ -106,8 +106,7 @@ if (file_exists("{$g['vardb_path']}/captiveportal_radius.db")) {
}
if ($_POST['logout_id']) {
- disconnect_client($_POST['logout_id']);
- echo <<<EOD
+ echo <<<EOD
<HTML>
<HEAD><TITLE>Disconnecting...</TITLE></HEAD>
<BODY BGCOLOR="#435370">
@@ -123,7 +122,8 @@ setTimeout('window.close();',5000) ;
</HTML>
EOD;
-exit;
+ disconnect_client($_POST['logout_id']);
+ exit;
} else if ($clientmac && $radmac_enable && portal_mac_radius($clientmac,$clientip)) {
/* radius functions handle everything so we exit here since we're done */
exit;
OpenPOWER on IntegriCloud