Captive Portal Logout Page instead of Popup
-
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? -
https://forum.pfsense.org/index.php?topic=77143.0
-
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. -
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.
-
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.
-
You would do me a great favor with a guide. Thanks in advance!
-
Please follow this post, it is what you want.
https://forum.pfsense.org/index.php?topic=89869.msg497777#msg497777