This project is read-only.

Login sometimes works, sometimes doesn't

Jul 29, 2016 at 3:26 PM
Sometimes my identity login works, sometimes it doesn't. On the Login page I don't get an error or anything, I am just redirected back to the login page, so the fields are cleared..
So I don't think it is an issue with bad login info.

I think it has something to do with the ASP.NET Identity cookie.

I have been doing some Googling, but the closest thing I have found is some people seeing this behavior when they are on a web farm. Solution was setting a machine key in the web config.

However, I encounter this login problem even when I run the website in the development environment.

Assistance would be greatly appreciated.
Aug 5, 2016 at 5:50 PM
I've discovered that the login always seems to work on the third try. Although once I do log in successfully, it seems to work after that. I put breakpoints in and the actual sign in status is success every time, even the first two times. The problem seems to be that only when I get to the third try is the cookie actually written. Makes no sense to me. Anyone have any ideas at all???