Using Http module for authorization AuthorizeRequest or BeginRequest
I have a wap site with susciription and I want to check if users are authorized to see some pages. I have decided to use ht开发者_JAVA技巧tp module.
Should I use AuthorizeRequest or BeginRequest to check the users status? and why?You obviously should handle AuthorizeRequest event since you need to know who is the user (authentication must have been processed).
You really have not given enough information to garner an authoritative answer but I can provide a bit of information to get you started on refining your question.
See http://www.codeproject.com/Articles/39026/Exploring-Web-config-system-web-httpModules.aspx
Some relevant information would be a description of your authentication strategy.
Update your question and leave me a comment and I will get right back to you.
精彩评论