如何阻止用户在多个标签页中登录 [英] how to stop users login in multiple tabs

查看:139
本文介绍了如何阻止用户在多个标签页中登录的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述





你可以指导我如何阻止用户不要在多个标签的同一个浏览器中登录

这会导致一些会话数据操作。



例如:user1登录一个标签

user2登录另一个标签然后转到标签1(user1)并提交表单导致一些内部问题(例如user2与user1数据,因为user2是最新登录用户)所以请帮助我..



感谢您的任何答案。 。

解决方案

http://forums.asp.net/发布/ 5825784.aspx [ ^ ]


您应该使用FormsAuthentication(asp网络成员资格),并在登录页面上检查登录状态,如果用户已登录,则重定向到主页。换句话说,如果用户已经登录,请不要访问登录页面。



请详细说明您的情况,以便我能够准确理解问题。

hi ,

can u guide me how to stop the users not to login in the same browser in multiple tabs
this causes some session data manipulations.

eg: user1 login in one tab
user2 login in another tab then after going to tab 1(user1) and submitting the form leads to some internal issues( like user2 with user1 data as user2 is latest logged in user) so please help mee..

Thanks for any answers..

解决方案

http://forums.asp.net/post/5825784.aspx[^]


You should use FormsAuthentication (asp net membership), and check the login status on Login page, if user is already loggedin then redirect to homepage. In other word don't let access the Login page if user is already logged in.

Please explain your situation a bit more so I can understand the issue exactly.


这篇关于如何阻止用户在多个标签页中登录的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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