我有一个asp网络应用程序,当同一网络上有两个或更多用户登录时,我遇到了问题。我使用查询来检索帐户详细信息,有时会检索在同一网络上登录的其他人的详细信息。 示例 John is Lisa使用不同的设备登录并需要使用同一装置 有时候Lisa的账户详情在他的帐户中出现约翰的详细信息,并且lisa也是如此。 我不确定这个问题是否来自
I have an asp 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
MembershipUser currentUser = Membership.GetUser(); Guid currentUserId = (Guid)currentUser.ProviderUserKey;或为什么lisa可以看到John的账号 谢谢。
or why lisa can see John's account Thank you.
推荐答案如果你有 static 这通常会发生页面中声明的变量。搜索并删除 static 。 This usually happens if you have static variables declared in your page. Search for those and remove static.
更多推荐
用户会话附加到另一个用户的会话
发布评论