Hello all,
I have a custom event that is handling the authentication event of my login control. It is "PortalLoginControl_Authenticate(object sender, AuthenticateEventArgs e) { ... }." Two questions:
1. I'm trying to make sense of the contents that are stored in the cookie created by the execution of the following line:
FormsAuthentication.RedirectFromLoginPage(this.PortalLoginControl.UserName, this.PortalLoginControl.RememberMeSet);
After I login, if I were to kill the browser, login again and execute the following code prior to the above call,
// check for existing "Remember Me" cookie ...
//if (Request.Cookies[".M5LOGIN"] != null)
{
// get the cookieHttpCookie cookie = Request.Cookies[".M5LOGIN"];
// get the cookie valuestring value = Server.HtmlEncode(cookie.Value);
}
The 'value' field gets populated, but with a string that is not human-readable. What is being stored in the value returned by 'Server.HtmlEncode(cookie.Value)" ??
2. Do I control this somehow or is the login control in complete control of what gets written out to the cookie?
Thanks for any insight,
Dan (dotBomb)