Thanks to visit codestin.com
Credit goes to github.com

Skip to content

joaf123/ASP.NET-WebForms-Authentication

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 

Repository files navigation

Verify FormsAuthentication cookie on request through custom attribute

httpModule for verification of FormsAuthentication cookie on request, using a custom attribute.

Currently supported use cases:

[RequiresAuthentication]
[WebMethod]
public string AjaxMethod() {
[RequiresAuthentication]
public partial class WebFormsPage : System.Web.UI.Page

Remember to set the FormsAuthentication cookie!