I have a web application that is created using asp.net webforms template. It uses Asp.net Identity for login process. To make identity use my database i changed default connection string to point my own database.
I did not make any remarkable changes to the default template of asp.net webforms application.
I published my web site and add it to IIS sites. Now i can reach my website by writing http://myip to my browser. However after a while has passed my login page begins to not working. When i login with my correct username and password it should redirect me to the page i try to reach, but it behaves like i have not logged in and brings me the login page again with form is reset.
It is just like i am reloading the login page instead of loging in.
When i reset my application through IIS i can login as usual. It works correctly.
What is the problem?
Why my login page sometimes work and sometimes not? Is it about my IIS settings? I have not made any remarkable change on them. They are nearly default settings.
My operating system is Windows 8.1 Enterprise N
And i use Visual Studio 2013 (.NET 4.5)
It's not very clear if you are using Owin + Asp.NET Identity but (I assume you are so) check this link, another similar question in SO which explains this issue in much detail and a workaround.
Partial quote:
System.Web has its own master source of cookie information and that isn't the Set-Cookie header. Owin only knows about the Set-Cookie header. A workaround is to make sure that any cookies set by Owin are also
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With