Click here to Skip to main content
15,889,831 members
Please Sign up or sign in to vote.
2.50/5 (2 votes)
See more: , +
Hi,

I just created a simple website with VS2010. It starts with built-in Login and SQL membership and authentication and all. I have kept same pages i.e. Login, Register that are created by Visual Studio.

I just added some pages without touching any functionality related to user/login/authentication except for adding some roles to restrict access to some pages.

This is deployed on shared hosting and few users are using it. It's generally working correctly and users are able to login and see content related to them.

Today, I try to login and it showed some other's user's name in the header in asp:LoginName of asp:LoginView and content for that user. I confirmed with other user that he was too logged in at the same time. I have never used that id on this machine as it was created by the user by registering.

I tried to find a lot on Google for quite sometime in vain. Some suggests use of static variable. But, I am not using any variable, it's built-in control.

Anyone has any clue or any direction to look into?

Thanks
Milind
Posted
Updated 13-Nov-14 1:16am
v3
Comments
Afzaal Ahmad Zeeshan 13-Nov-14 5:29am    
Seems like the website is logging in the same user on every client's user agent.

Re-check your login function and see if they're constants, or a variable data from the form submitting.
MT_ 13-Nov-14 5:31am    
No, It generally logs in different user and functions correctly. Plus, as I said, I didn't write a single line of code. It's all build-in controls, and even the pages like login, register etc generated by VS.
ZurdoDev 13-Nov-14 7:47am    
Just debug the code.
MT_ 13-Nov-14 10:14am    
It isn't an option ! It happens only on server. A pointer from Richard Deeming below made me check server setting which was set to dynamic caching ON. Turned it off for now to check out. Let's see. Thanks

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