用户会话附加到另一个用户的会话 [英] User Session attached to another user's session

查看:77
本文介绍了用户会话附加到另一个用户的会话的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个asp.net网络应用程序,当同一网络上有两个或更多用户登录时,我遇到了问题。我使用查询来检索帐户详细信息,有时会检索在同一网络上登录的其他人的详细信息。



示例



John is Lisa使用不同的设备登录并需要使用同一装置



有时候Lisa的账户详情在他的帐户中出现约翰的详细信息,并且lisa也是如此。



我不确定这个问题是否来自



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

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.


这篇关于用户会话附加到另一个用户的会话的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆