Updated to latest version hoping this was fixed but still have the same problem.
I've included the relevant code from the login page that is giving the error below. Unfortunately, I cannot give you the code for the User Manager because this is part of the CMS that I am using (Sitefinity). but the error is being thrown on the second line of the LoggedIn handler, because the first line is returning a blank cookie. the value is not NULL, but all the parameters are blank and default (for example, date is 1/1/0001).
I've sent a copy of this to Sitefinity for more information on what the UserManager is doing, but something is happening when the toolkit is enabled that is not returning a valid cookie.
please let me know if I can provide any more details
protected void Page_Load(object sender, EventArgs e)
{
this.Login1.LoggedIn += new EventHandler(Login1_LoggedIn);
this.Login1.Authenticate += new AuthenticateEventHandler(Login1_Authenticate);
}
void Login1_Authenticate(object sender, AuthenticateEventArgs e)
{
e.Authenticated = UserManager.Default.ValidateUser(this.Login1.UserName, this.Login1.Password);
}
void Login1_LoggedIn(object sender, EventArgs e)
{
HttpCookie cookie = this.Response.Cookies[FormsAuthentication.FormsCookieName];
UserManager.Default.SetAuthenticationCookie(cookie);
string redirectUrl = Request.QueryString["ReturnUrl"];
this.Page.Response.Redirect(redirectUrl, true);
}