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

    How to get cportal username by IP? And session id by username?

    Scheduled Pinned Locked Moved Development
    2 Posts 2 Posters 1.1k 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.
    • D
      dylanh724
      last edited by

      Hi –

      A bit new here .. how do I get the captive portal username by IP? What about session id by username (or is there a $_SERVER[] thing I can do to get the ID, assuming it's a cookie)?

      My goal is, on the logout page, I want it to show the username before they logout (small thing for future tests)

      1 Reply Last reply Reply Quote 0
      • E
        EMWEE
        last edited by

        Use the already-connected function described by Gert-Jan in this topic:
        https://forum.pfsense.org/index.php?topic=77143.0

        Add a query for cpentry[4]

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