如何在c#中为每个用户登录会话变量库的应用程序? [英] How to login application on session variable base for every user in c#?

查看:46
本文介绍了如何在c#中为每个用户登录会话变量库的应用程序?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我必须通过单一用户访问来登录网页。因此,如果此用户已登录其他系统,则如果其他用户想要登录则不应登录相同的用户凭据,则必须登录。那么怎么做?

I have to login a webpage by single user access. So if this user already logged in some other system then should not login by that same user credentials if other user want to login then have to login. So how to do this?

推荐答案

网络是无状态的,因此无法知道谁登录。人们要求这个要求很多,但没有可靠的方法。
The web is stateless so there is no way of knowing who is "logged in". People ask for this requirement a lot but there is no reliable way of doing it.


你需要在数据库中处理用户会话。
you need to handle user session in Database.


这篇关于如何在c#中为每个用户登录会话变量库的应用程序?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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