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?
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.
Member
10 Points
76 Posts
Having to login twice after timeout
Sep 23, 2019 05:52 PM|RDesh|LINK
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!
All-Star
52261 Points
23316 Posts
Re: Having to login twice after timeout
Sep 23, 2019 05:57 PM|mgebhard|LINK
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.
Contributor
3140 Points
983 Posts
Re: Having to login twice after timeout
Sep 24, 2019 08:09 AM|Yang Shen|LINK
Hi RDesh,
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