Click here to Skip to main content
15,886,137 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
Hello,

I have a unsolutioned problem for the past days. I have an WebForms application wich uses individual accounts for login using Idendity 2.0.
After I deployed the application to production environment I noticed that the users are not logged in after a certain amount of time (approx 1h). There is no error that shows up (the username and password are correct, and the application redirects user to main page, as it should). The problem is that the user is not logged in.
I also mention that the production environment is made of 2 Web Servers (Windows Server 2012 R2 with IIS 8.5) pointing to a shared network location.
If I restart the IIS service, the users can log in again for approx 1h. I don't get any warnings or errors events, nothing.
The only difference I saw was that when a users succeedes to SignIn, it also receives .AspNet.ApplicationCookie, and when it cannot Signin, that cookie isn't received (or sent by server).
Please help me or lead me further in troubleshooting this problem.
Thanks in advance,
Alex
Posted
Updated 5-Feb-15 2:07am
v3
Comments
ZurdoDev 5-Feb-15 7:52am    
Sounds like their session expired.
Alexandru-Marius Dobre 5-Feb-15 8:11am    
The users can't SignIn even after closing browser, or using another one
ZurdoDev 5-Feb-15 8:16am    
Should be an error somewhere. Are you logging errors? Did you look in event viewer?
Alexandru-Marius Dobre 6-Feb-15 1:47am    
I had some errors in event viewer, but they were related to an AppPool that i used to run the application. In the past, I've created an AppPool an ran the DefaultWebSite with that AppPool, and then moved back to DefaultAppPool. I've deleted the custom AppPool and it has allready been a day and the error didn't appeared. Could this be the solution to my problem? I will keep you posted. Thanks
ZurdoDev 6-Feb-15 7:32am    
Sounds like that could be it. Let's hope so.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900