Froms票证是为了存储一些有用信息在客户端..一般都与Cookie一起使用..
//创建票证对象
var ticket = new FormsAuthenticationTicket(, entity.LoginName, DateTime.Now, DateTime.Now.AddMonths(),true, entity.Id + "");
//根据前边的票证对象创建字符串,此字符串将用于存储进Cookie
string encTicket = FormsAuthentication.Encrypt(ticket);
//根据得到的String值.存储进Cookie
var cookie = new HttpCookie(cookieName, encTicket);
Response.Cookies.Set(cookie);
//从Cookie中得到前边生成的字符串并反创建出票证对象
FormsAuthenticationTicket ticket = FormsAuthentication.Decrypt(Request.Cookies[cookieName].Value);
ticket.UserData 便是前边存储的重要的验证值Ticket);