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

    Why logout popup windows doesn't appear

    Scheduled Pinned Locked Moved Captive Portal
    7 Posts 4 Posters 2.8k 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.
    • C
      computerz_man
      last edited by

      Hi Dears,
      Also i checked on Enable logout popup window in Captive Portal, but it doesn't appear to any device in the network …...

      anybody know why ???
      logout.jpg
      logout.jpg_thumb

      1 Reply Last reply Reply Quote 0
      • jimpJ
        jimp Rebel Alliance Developer Netgate
        last edited by

        Usually because browsers block pop-up blockers, but it might also be from using a custom logout page that doesn't include the JS to fire off the popup.

        https://github.com/pfsense/pfsense/blob/master/src/etc/inc/captiveportal.inc#L294

        Remember: Upvote with the 👍 button for any user/post you find to be helpful, informative, or deserving of recognition!

        Need help fast? Netgate Global Support!

        Do not Chat/PM for help!

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

          Just tested is.
          Using a new PC I received from Dell (WIN7) yesterday.
          I activated the Wifi.
          Choose the captive Portal Wifi network.
          After a couple of seconds, the system showed a message on the bar that "special  actions where needed" and IE popped up.
          My portal page was shown, I had to log in.
          Right after validating, a popup windows popped up - see image.

          Conclusion : it's up to the user - and not pfSense - to decide if the popup will popup ;)

          Capture.PNG_thumb
          Capture.PNG

          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
          • W
            watabigeye
            last edited by

            @jimp:

            Usually because browsers block pop-up blockers, but it might also be from using a custom logout page that doesn't include the JS to fire off the popup.

            https://github.com/pfsense/pfsense/blob/master/src/etc/inc/captiveportal.inc#L294

            Hi, How to put this in the CP?

            Thanks

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

              @watabigeye:

              ..
              Hi, How to put this in the CP?

              By default, this https://github.com/pfsense/pfsense/blob/master/src/etc/inc/captiveportal.inc#L294 IS present in the default 'login page'.

              If you build your own login page, reuse the code  ;)

              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
              • W
                watabigeye
                last edited by

                @Gertjan:

                @watabigeye:

                ..
                Hi, How to put this in the CP?

                By default, this https://github.com/pfsense/pfsense/blob/master/src/etc/inc/captiveportal.inc#L294 IS present in the default 'login page'.

                If you build your own login page, reuse the code  ;)

                You mean, I will copy and paste the whole code and upload it in the captive portal login page?

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

                  @watabigeye:

                  @Gertjan:

                  @watabigeye:

                  ..
                  Hi, How to put this in the CP?

                  By default, this https://github.com/pfsense/pfsense/blob/master/src/etc/inc/captiveportal.inc#L294 IS present in the default 'login page'.

                  If you build your own login page, reuse the code  ;)

                  You mean, I will copy and paste the whole code and upload it in the captive portal login page?

                  You don't need to upload the 'html page' that is already there.

                  Only if you decide to make your own login page (html, some PHP, some Javascripts, whatever) THEN you should make one, and upload it.
                  If it doesn't work, make it work (or go back to the default page).

                  Btw : You can never ever force a browser to show a popup page - most users have this disabled, and YOU can NOT control THEIR browser.
                  You could try to explain to your visitors that they should accept popups when using YOUR portal page - but guess what ? :
                  -> People don't read
                  -> If they read, then they don't know how to make an exception for your portal page …
                  -> So yes, they can't logout. (pfSEnse will end the session after a idle timeout or the HARD time out for sure).

                  A simple solution might be (if you need them to disconnect because your are selling the access for big bucks) :
                  Set the idle time very low (a couple of minutes).
                  Explain people that they should deactivate their wifi (just de wifi access - most devices have a slider or a button for that) a couple of minutes, then pfSense well ditch their session (connection). Most people can handle that.
                  If not, well, THEY will consume some more time ...... (so they loose some more money ..... and NOW you have their attention ! )

                  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.