问题描述
嗨 如果试图创建一个Web应用程序,其中多用户可以通过托管在一台服务器上的URL访问此Web应用程序.如果一个用户从一个浏览器或计算机登录此应用程序,则该用户不应允许从任何其他浏览器或计算机登录.
我想要类似于银行应用程序,该应用程序限制用户一次创建单个实例.
我知道我可以通过成功登录后更新数据库表中的标志并每次检查用户已登录或未检查的位置来执行此操作,但这会增加数据库的往返路程.我认为应用程序对象在这种情况下可能有用,但不知道如何实现.提供soln.thanx
Hi If am trying to create a web application in which multiuser can access this web application through URL which is hosted on one server.If one user logged on this application from one browser or machine this user should not allow to login from any other browser or machine.
i want to similar to bank application which restrict to user create single instance at a time.
I know that i can do this by updating flag in database table after login successfully and check every time where user already logged or not checked but it increases my database round trip.i thinking application object can useful in this case but don''t know how to implement.provide soln.thanx
推荐答案
这篇关于将用户限制为Web应用程序的单个登录实例的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!