用户会话附加到另一个用户的会话

编程入门 行业动态 更新时间:2024-10-27 20:39:25
本文介绍了用户会话附加到另一个用户的会话的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

我有一个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.

更多推荐

用户会话附加到另一个用户的会话

本文发布于:2023-11-11 11:44:08,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1578348.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:用户

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!