CreatingCookieEventArgs.Password Property

 

Gets the password for the user.

Namespace:   System.Web.ApplicationServices
Assembly:  System.Web.Extensions (in System.Web.Extensions.dll)

public string Password { get; }

Property Value

Type: System.String

The password that is provided by the user for authentication.

You use the Password property to retrieve the password when you set custom values in the authentication ticket.

System_CAPS_noteNote

Do not save the value of the Password property in the authentication ticket. A malicious user can access the cookie and retrieve the password even though the cookie is encrypted.

.NET Framework
Available since 3.5
Return to top
Show: