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

    2 logins to get on the webif

    Scheduled Pinned Locked Moved 2.0-RC Snapshot Feedback and Problems - RETIRED
    4 Posts 2 Posters 1.9k 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.
    • _
      _igor_
      last edited by

      I have to enter lots of times twice my login, because i get this:

      CSRF check failed. Either your session has expired, this page has been inactive too long, or you need to enable cookies.
      Debug: sid:50a4fc00465fa06c0b2b346497b5a4b7d9779450,1303056141
      

      This happens on autologout and when i reload my browser and do not login at the same time when the login-page loads. Its somewhat annoying. Is there any way to bypass that?

      Happens too if any page is opened and i want to get a new tab or want to change to an other page on the webif after a "long" time. Then i get the login-page but after login this message and i have to login another time. I think that this messages should not appear after a fresh login.

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

        It's a security protection, so someone can't steal your old session.

        Though I haven't seen this happen lately myself. If I leave it sit for a long time it just takes me back to the login page. though it's rare that I hit the auto logout timer in a given browser session so I may just not be replicating your same circumstances.

        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
        • _
          _igor_
          last edited by

          Ok, that sounds ok for me, but when i get popped to the login-page, it should not occur that i have to login twice! And this is the fact which disturbs a bit. shouldn't the cookie be deleted or rewritten upon login to avoid that?

          I can replicate that very simple: stay at any of the services-page, wait a time, then press "save": You get your first message and jump to the login-page. Then login and you'll get the second message and again jump to login. Then, after the second login you can do whatever you want to do.

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

            That is probably a side effect of your first action after the timeout being a POST, and tripping the CSRF protection. There may not be a good way around that one, though I'm not sure why it makes you login twice.

            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
            • First post
              Last post
            Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.