public HttpCookie CreateFormsAuthenticationCookie(OpenIdUser user)
{
var ticket = new FormsAuthenticationTicket(1, user.Nickname, DateTime.Now, DateTime.Now.AddDays(7), true, user.ToString());
var encrypted = FormsAuthentication.Encrypt(ticket).ToString();
var cookie = new HttpCookie(FormsAuthentication.FormsCookieName, encrypted);
return cookie;
}