【发布时间】:2011-07-01 12:35:49
【问题描述】:
我需要读取、生成并保持更新一个不同于 formauthentication 的身份验证 cookie。
我看到了许多选项,例如使用 IHttpHandlers、IHttpModules、自定义授权过滤器等。
你会怎么处理?
【问题讨论】:
标签: .net asp.net asp.net-mvc authentication formsauthentication
我需要读取、生成并保持更新一个不同于 formauthentication 的身份验证 cookie。
我看到了许多选项,例如使用 IHttpHandlers、IHttpModules、自定义授权过滤器等。
你会怎么处理?
【问题讨论】:
标签: .net asp.net asp.net-mvc authentication formsauthentication
如果您需要弄乱身份验证 cookie,请在 Global.asax 中使用 Application_AuthenticateRequest 事件
protected void Application_AuthenticateRequest(object sender, EventArgs e)
{
}
【讨论】: