How to get Countdown timer for Timeout on Logout window of CP
-
how to display a countdown timer for session timeout on logout popup windows of the Captive portal.
Thanks
SSR -
Hi,
First things first : The visitor, the client, can - and they often do - block popup windows.
If this wasn't the case:
The default setup contains the possibility to have a popup opened when the visitor / clients logins in. See here : https://github.com/pfsense/pfsense/blob/RELENG_2_2/etc/inc/captiveportal.inc#L286
What need to be done : adding Javascript code that shows a count down code (you'll find many examples on the net). When this popup windows is created, it should be 'started' a variable (which exists) that contains the initial value : the "hard time out".But, as said above : most clients / visitors will never see this windows, because they do as you and I : blocking popups.
An idea might be : redirected people to a web page (on pfsense) after login.
This page contains the counter. On the page, advise people to keep the window open …Or : advise them to set an alarm on their watch when they logged in .... ;) (easy, no coding needed).