November Happy Hour will be moved to Thursday December 5th.

Class AntiForgeryValidation

Protects postbacks with an anti-forgery token that is unique per user and stored in a cookie

Inheritance
System.Object
AntiForgeryValidation
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: EPiServer.Web.PageExtensions
Assembly: EPiServer.dll
Version: 10.10.4
Syntax
[PagePlugIn("AntiForgeryValidation", "Protects against request forgery")]
public class AntiForgeryValidation
Remarks

A hidden field is injected on the page and a corresponding cookie is set to the browser

Constructors

AntiForgeryValidation()

Declaration
public AntiForgeryValidation()

Properties

OptionFlag

The option flag for this page extension

Declaration
public static int OptionFlag { get; set; }
Property Value
Type Description
System.Int32

Methods

Attach(Page)

Attach an instance of the AntiForgeryValidation class to a PageBase class.

Declaration
public void Attach(Page page)
Parameters
Type Name Description
System.Web.UI.Page page

The page.

Initialize(Int32)

Method called at system startup to initialize this plug in.

Declaration
public static void Initialize(int optionFlag)
Parameters
Type Name Description
System.Int32 optionFlag

The option flag value assigned to this plug in.

Extension Methods