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

    Displaying Max-Daily-Session

    Scheduled Pinned Locked Moved Captive Portal
    2 Posts 2 Posters 895 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.
    • T
      tsudenoconsigliere
      last edited by

      i was using the Max-Daily-Session on my CP with FreeRadius2 and MySQL and made an a username and password on table radcheck
      with a Max-Daily-Session of 2hours per day of 7200 seconds per day, i was wondering if i could display the remaining time left on the logout page?

      sorry for my bad english. thanks in advance i hope someone can help me here

      1 Reply Last reply Reply Quote 0
      • J
        jhochwald
        last edited by

        @tsudenoconsigliere:

        i was using the Max-Daily-Session on my CP with FreeRadius2 and MySQL and made an a username and password on table radcheck
        with a Max-Daily-Session of 2hours per day of 7200 seconds per day, i was wondering if i could display the remaining time left on the logout page?

        Hi,

        two options:

        • Native PHP with the Info of pfSense (Search the Forum, but you need to patch pfSense to get this info for non voucher users)

        • Use PHP and Query your Database. You will need to use the radacct Table and do some math ;-)

        Have fun.

        Regards

        /JH

        1 Reply Last reply Reply Quote 0
        • First post
          Last post
        Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.