简体   繁体   中英

Single User Single Login

I've Created one Desktop Application which has server client access... Every user will has different login. Now the problem is, when one user is login, the same user cannot be login from other pc... The msg should come as the 'user is already Login'. In ASP.Net, it can be achieved through session.. But, how can I do this in Desktop Application. There is one solution.. We can maintain one log table for the logined users. But, that too will face deadlock situation.... Is any other solution for the single user login??

Then you need to check whether your user is logged in or not, before the login itself. You can use a special field in the User table or in a special table for that. What deadlocks? All you need is a read access to make sure particular user was not logged in.

您可以设置登录超时以避免死锁,还可以向服务器发送“实时”信号以更新用户已登录的状态。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM