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

    Captive portal manual logout page address

    Scheduled Pinned Locked Moved Captive Portal
    105 Posts 15 Posters 59.9k Views 6 Watching
    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.
    • GertjanG Online
      Gertjan @netx34
      last edited by

      @netx34 said in Captive portal manual logout page address:

      btw only the logout.php can apply FQDN for the domain name

      What do you mean ?

      No "help me" PM's please. Use the forum, the community will thank you.
      Edit : and where are the logs ??

      1 Reply Last reply Reply Quote 0
      • G Offline
        guntery @Gertjan
        last edited by guntery

        When I visited this /logout.php page, I was logged out.

        So this code works great, thanks. I'm adding in a redirect at the end of the file - it works - but it takes around 20 seconds too load the login page - or any page

        Any ideas on a workaround? - I assume the portal is interfering somehow.

        <script>window.location.replace("http://example.com");</script>
        
        

        edit: weird, it a happened a few times, restored a backup and it now works fine..

        GertjanG 1 Reply Last reply Reply Quote 0
        • GertjanG Online
          Gertjan @guntery
          last edited by

          @guntery said in Captive portal manual logout page address:

          I'm adding in a redirect at the end of the file

          What are you talking about ?
          What file ? The script from above ? That a massive "log everybody out" script file.

          After throwing everybody out, why would you redirect yourself to http://example.com ? Why not the pfSense GUI ?

          No "help me" PM's please. Use the forum, the community will thank you.
          Edit : and where are the logs ??

          G 1 Reply Last reply Reply Quote 0
          • G Offline
            guntery @Gertjan
            last edited by

            Huh? It logs out the user who goes to that page not all users.

            the redirect goes to the splash page either way though right (it's an example), in this case I have 2 captive portals with differing IP's and 1 logout script so it was easier to use the domain redirect not the CP IP

            GertjanG 1 Reply Last reply Reply Quote 0
            • GertjanG Online
              Gertjan @guntery
              last edited by

              @guntery said in Captive portal manual logout page address:

              uh? It logs out the user who goes to that page not all users.

              I stand corrected.
              Had to review the script and true, the caller gets logged out.
              Sorry for the noise ^^

              No "help me" PM's please. Use the forum, the community will thank you.
              Edit : and where are the logs ??

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