forms authentication - Change the user data in FormsAuthenticationTicket programmatically -
I am using FormsAuthenticationTicket
and filling out data and passing data to all pages I am here. And this will work if we are not changing any data.
So, now if I want to change the data and pass it to the cookie and encrypt it, then the data is to be converted to program.
Please give me the solution to change the data in the HPC
program.
This is an example of how I modify the previously issued form certified ticket:
/ P> http cookie cookie = formas. Var ticket = formattap.documentation (cookie.Value); // All the attributes in the synchronization for the Web, along with the form ticket, the urdest store / user data. New FormsAuthenticationTicket (Ticket version, Ticket .name, Ticket.Isadet, Ticket end, true, always always "user data", Tickets. CuckoPath); // Encrypt the ticket and place it in the cookie cookie. Value = formatting Encrypt; Cookie Exercise = Nutcracker Explanation.Edours (24); This.Context.Response.Cookies.Set (cookie);
Comments
Post a Comment