locked
Having to login twice after timeout RRS feed

  • Question

  • User-173333858 posted

    After session timeout my ASP.net application logs out the user and takes him/ her back to login page. But after entering credentials, it again logs them out, prompts to login again, and then allows the user to enter . I am thinking this might be due to expired cookies, etc, but cannot pinpoint what is happening. Can anyone help out?

    Thanks!

    Monday, September 23, 2019 5:52 PM

All replies

  • User475983607 posted

    After session timeout my ASP.net application logs out the user and takes him/ her back to login page. But after entering credentials, it again logs them out, prompts to login again, and then allows the user to enter . I am thinking this might be due to expired cookies, etc, but cannot pinpoint what is happening. Can anyone help out?

    The community cannot see your code has has no idea how your security works.  It sounds like you created custom security and need to take some time to debug.  Otherwise, look into standard ASP.NET security which is known to function properly.

    Monday, September 23, 2019 5:57 PM
  • User-719153870 posted

    Hi RDesh,

    Can anyone help out?

    Sorry for too little information provided.

    Having to login twice in Asp.net is a quite common and wide problem, you can find many related links and threads online for many different situations.

    Maybe it's an IIS situation, then you might want to see Having to login twice to asp.net application due to “Default Document” in IIS.

    Or maybe it's about asp.net security, see Forms authentication - having to login twice.

    Generally, you will need to provide more information or code so that we can help. Or you can debug the login progress to see if anywhere's incorrect.

    Best Regard,

    Yang Shen

    Tuesday, September 24, 2019 8:09 AM