0

Is There in ASP.NET and C# something like Java filter? I need to intercept all request and check if user is authenticated or not.

4

1 回答 1

0

Yes. Check out the ASP.NET Http Module features. You can plug these in via you web.config configuration.

Check out: http://msdn.microsoft.com/en-us/library/ff649096.aspx

However, perhaps out of the box forms authentication (which itself is implemented in ASP.NET by an HTTP module) may be of value to you.

于 2013-11-07T12:32:29.480 回答