Click here to Skip to main content
15,891,423 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I have an asp.net web app and i have an issue when two or more users on the same network are logged in . I use a query to retrieve account details which sometimes retrieves the details of the other person logged in on the same network.

Example

John are Lisa are logged in with different devices and have need used the same device

Sometime Lisa's Account Details appear as John's details on his account and same happens to lisa.

I am not sure if this issue arises from

C#
MembershipUser currentUser = Membership.GetUser();
Guid currentUserId = (Guid)currentUser.ProviderUserKey;


or why lisa can see John's account

Thank you.
Posted

1 solution

This usually happens if you have static variables declared in your page. Search for those and remove static.
 
Share this answer
 

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