Assembly: System.Web (in system.web.dll)
'Declaration <TypeConverterAttribute(GetType(WhiteSpaceTrimStringConverter))> _ Public Property ValidationKey As String 'Usage Dim instance As MachineKeySection Dim value As String value = instance.ValidationKey instance.ValidationKey = value
/** @property */ public String get_ValidationKey () /** @property */ public void set_ValidationKey (String value)
public function get ValidationKey () : String public function set ValidationKey (value : String)
Property ValueAn encryption key value, or a value that indicates how the key is generated. The default is "AutoGenerate,IsolateApps".
The ValidationKey property is used when enableViewStateMAC is true to create a message authentication code to ensure that view state has not been tampered with. The ValidationKey property is also used to generate out-of-process, application-specific session IDs to ensure that session state variables are isolated between applications.
Use the "AutoGenerate" option to specify that ASP.NET generates a random key and stores it in the Local Security Authority. The "AutoGenerate" option is part of the default value.
If you add the IsolateApps modifier to the ValidationKey value, ASP.NET generates a unique encrypted key for each application by using each application's application ID. IsolateApps is also part of the default value.
If you need to support configuration across a network of Web servers (a Web farm), set the ValidationKey property manually to ensure consistent configuration.