How to logout user via php? Tried this:
-
I tried:
// captiveportal-ogout.php require_once("config.inc"); require_once("captiveportal.inc"); echo "TRYING.."; if ($_GET['logout_id']) { $sessionid = $_GET['logout_id']; echo " it's there.."; captiveportal_disconnect_client($sessionid); echo " try and see if user is dc"; } else { echo 'nope didn't work'; }
Then tried
captiveportal-logout.php?logout_id={real id from looking at source code filled after being logged in}But no dice …..........
Thoughts?
-
https://forum.pfsense.org/index.php?topic=77143.0
will probably need adjustments, but it'll get ya started
Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.