How do I add and retrieve additional information to/from a forms authentication ticket? This is my ticket:
FormsAuthenticationTicket ticket = new FormsAuthenticationTicket(
1, // Ticket version
txtUsername.Text, // Username associated with the ticket
DateTime.Now, // Date/time issued
DateTime.Now.AddMinutes(120), // Date/time to expire
true, // "true" for a persistent user cookie
I need to be able to add the UserID (integer) and officeID (also an integer) and retrieve these values.
How is this possible?