Navigation

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

    Captive Portal Logout Page instead of Popup

    Captive Portal
    4
    7
    4926
    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.
    • T
      thomas15 last edited by

      I read many forum posts about this topic but it seems that there is no easy solution for this common problem: The users' popup blocker blocks the captive portal logout page, so users can't logout. This may not be a problem when every user uses his own device, but I have a school here where users share computers and even tablets regularly.

      In this post:
        https://forum.pfsense.org/index.php?topic=77143.msg549838#msg549838
      jimp writes that in pfsense 2.3 you can easily redirect to a custom logout page.

      I tried a 2.3 build in a test environment, but I don't know what to put in the custom logout page so a user can actively logout when accessing it.
      Maybe someone has a step-by-step-solution that I can understand without php knowledge?

      1 Reply Last reply Reply Quote 0
      • E
        EMWEE last edited by

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

        1 Reply Last reply Reply Quote 0
        • T
          thomas15 last edited by

          Hello EMWEE,

          that is exactly the thread I mentioned in my original post.
          I am still very interested in a solution that works with pfsense 2.2 or 2.3 and doesn't involve php programming.

          1 Reply Last reply Reply Quote 0
          • Gertjan
            Gertjan last edited by

            @thomas15:

            that is exactly the thread I mentioned in my original post.
            I am still very interested in a solution that works with pfsense 2.2 or 2.3 and doesn't involve php programming.

            Well …
            This:
            @EMWEE:

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

            isn't exactly php programming, but more like modifying some files … PHP knowledge isn't really needed IF (and only IF) you manage to copy and paste without errors.

            But, it won't work all the time.
            As found out, the cookie wasn't always stored (saved on the users device - Apple devices use stripped down login browser that will not store the cookie) so it was basically not very functional.

            Anything : I consider it as a 'case study' and stop using it - the code posted on pastebin.com is probably gone right know.

            No "help me" PM's please. Use the forum.

            1 Reply Last reply Reply Quote 0
            • E
              EMWEE last edited by

              The cookie solution isnt the best way to go when ur network contains BYOD. I use a combination of MAC and IP address to lookup the session ID.

              If u want i can post a guide on how to do this. You dont need any skills in PHP coding.

              1 Reply Last reply Reply Quote 0
              • T
                thomas15 last edited by

                You would do me a great favor with a guide. Thanks in advance!

                1 Reply Last reply Reply Quote 0
                • Y
                  yanqian last edited by

                  Please follow this post, it is what you want.
                  https://forum.pfsense.org/index.php?topic=89869.msg497777#msg497777

                  1 Reply Last reply Reply Quote 0
                  • First post
                    Last post