public static string GetSecureCookieValue(string key) { FormsAuthenticationTicket formsAuthenticationTicket = FormsAuthentication.Decrypt(GetCookieValue(key)); return formsAuthenticationTicket.UserData; } }