Netgate Discussion Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Search
    • Register
    • Login

    How to logout user via php? Tried this:

    Scheduled Pinned Locked Moved Development
    2 Posts 2 Posters 962 Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • D
      dylanh724
      last edited by

      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?

      1 Reply Last reply Reply Quote 0
      • H
        heper
        last edited by

        https://forum.pfsense.org/index.php?topic=77143.0

        will probably need adjustments, but it'll get ya started

        1 Reply Last reply Reply Quote 0
        • First post
          Last post
        Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.