网站中的C#登录问题 [英] c# login issue in website

查看:47
本文介绍了网站中的C#登录问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述




在我的站点中,最后一个登录ID将显示浏览我的站点的所有成员.

您能帮我解决这个问题吗,删除上一个登录ID ... ??????
我将使用coockie,然后从cookie进行会话.

例如:memberA和memberB

会员A登录我的网站并浏览.
而且他/她没有注销就离开了PC.

然后其他memberB浏览我的网站并登录,但是他获得了memberA的登录ID.他没有在我的网站上获得登录ID.



in my site last login id will display all member who browse my site.

can u help me to solve this remove last login id...??????
i will use coockie and then take session from cookie.

Ex: memberA and memberB

once memberA login my site and browse.
and he/she leave pc without logout.

and then other memberB browse my site and login it but then he got login id of memberA. he don''t get his login id in my site.

推荐答案

您好,

可能的问题是您已使用静态变量存储了最后的登录ID.或者您可以将其存储在表中并从所有系统中获取.

如果您使用的是Windows应用程序,请使用公共变量或属性从其他形式访问它.如果您使用的是Web应用程序,则使用Session变量.

希望您能尽快解决您的查询.

祝您好运.
Hi,

Possible issue is you have used static variable to store the last login id. or you may store it in table and fetch from all the system.

If you are using windows application then use public variable or property to access it from other forms. and if you are using web application then use Session variable.

Hope you resolve your query soon.

best luck.


请检查您是否在应用程序中使用了输出缓存.如果是,则删除输出缓存,然后检查,或者可以使用javascript/asp.net功能更新页面的登录信息.

希望对您有帮助.
Please check if you have used output cache in your application. If yes then remove the output cache and then check or you can use javascript/asp.net feature to update the login information of the page.

Hope this will help you.


这篇关于网站中的C#登录问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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