如何管理两个不同登录的会话 [英] How Can I Manage The Sessions For Two Different Logins
本文介绍了如何管理两个不同登录的会话的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
Ex:
i有user1
user1登入PC
用户2登录到平板电脑设备后
。
但它显示了user1的主页以及user1的名字。
如何解决这个问题
For Ex:
i have user1
user1 logged-in in PC
after that user2 logged-in into tablet device.
but it's showing user1's home page along with user1's name.
how can i solve this problem
推荐答案
这意味着你正在使用一些static
变量或static
属性。请检查您的应用程序并找出它们。
您不应该在Web应用程序中使用static
的东西,因为之后一个逻辑,那些将初始化并保存数据,将显示给其他用户。
That means you are using somestatic
variables orstatic
properties. Please review your application and find out those.
You should not usestatic
things in web applications, because after one logic, those will be initializes and holds data, which will be shown to other user.
这篇关于如何管理两个不同登录的会话的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文