通过SQL注销asp.net用户? [英] log out asp.net user through sql?

查看:108
本文介绍了通过SQL注销asp.net用户?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我可以通过SQL强制注销asp.net会员帐户吗?

Can I force a log out through SQL for asp.net membership account?

推荐答案

当前登录的用户没有记录以表单身份验证模式存储,因此仅通过某些SQL执行就无法注销用户.

No record of currently logged in users are stored in Forms Authentication mode so it would be impossible to log out a user by some SQL execution alone.

请注意,像SQL这样的数据存储区仅在表单身份验证"生存期的实际凭据身份验证步骤中使用:

Note that a data store like SQL is only used during the actual credential authentication step of the Forms Authentication lifetime:

表单身份验证控制流http://i.msdn.microsoft.com/Aa480476.formsauth(zh-CN,MSDN.10).gif

表单身份验证通常利用客户端cookie来处理当前登录的用户.

Forms Authentication generally utilizes client-side cookies to handle currently logged in users.

来源:说明:ASP.NET 2.0中的表单身份验证

这篇关于通过SQL注销asp.net用户?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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