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

    How to get Countdown timer for Timeout on Logout window of CP

    Scheduled Pinned Locked Moved Captive Portal
    2 Posts 2 Posters 941 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.
    • S
      shersinghrawat
      last edited by

      how to display a countdown timer for session timeout on logout popup windows of the Captive portal.

      Thanks
      SSR

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

        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).

        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.