Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我需要读取、生成并保持更新与表单身份验证不同的身份验证 cookie。
我看到了许多选项,例如使用IHttpHandlers、、IHttpModules自定义授权过滤器等。
IHttpHandlers
IHttpModules
你会怎么处理?
如果您需要弄乱身份验证 cookie,请在 Global.asax 中使用 Application_AuthenticateRequest 事件
protected void Application_AuthenticateRequest(object sender, EventArgs e) { }