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

    More fields on portal page

    Scheduled Pinned Locked Moved Captive Portal
    3 Posts 2 Posters 2.0k 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.
    • H
      hiwj
      last edited by

      I am looking to create a bilingual captive portal page (where users can select their language), but I would like this to be remembered on the error and redirected pages.

      What's the best option:

      PHP session variables or cookie?
      Additional form field?

      1 Reply Last reply Reply Quote 0
      • jimpJ
        jimp Rebel Alliance Developer Netgate
        last edited by

        I'd say cookie is your best bet for that.

        Remember: Upvote with the 👍 button for any user/post you find to be helpful, informative, or deserving of recognition!

        Need help fast? Netgate Global Support!

        Do not Chat/PM for help!

        1 Reply Last reply Reply Quote 0
        • H
          hiwj
          last edited by

          I have tried to cookie option, but now have a problem setting it. For some reason, I am unable to read QueryStrings e.g. ?language=eng as the Captive Portal seems to ignore them.

          Until I can get the $_GET to work, I think the only option is client side Javascript to set the cookie.

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