asp.netforms-authenticationmachinekey

Where is machineKey/validationKey used in FormsAuthentication?


MSDN : machineKey

Configures algorithms and keys to use for encryption, decryption, and validation of forms-authentication data and view-state data, and for out-of-process session state identification

Specifically which methods in FormsAuthentication make use of validationKey and encryptionKey values?


Solution

  • The methods in FormsAuthentication that use validationKey and encryptionKey are the FormsAuthentication.Encrypt and FormsAuthentication.Decrypt methods.