Why logout popup windows doesn't appear
-
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 ???
-
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
-
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 ;)
-
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
-
..
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Ā ;)
-
..
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?
-
..
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 ! )