forms authentication - c# Update Cookie, without forcing the user to login -


I have the 'UI' setting that controls the presence, which can change user settings, though Includes updating.

I think that should be able to update, but it forces the user to re-authenticate, how can I update the cookie without attaching the user again?

  / / We need to update UserType menu option change user = 2 usertoken (schedule minezedmanbubble); HttpCookie Cookie = FormAuthentication GetAuthCookie (usertoken.UserName, Incorrect); Var ticket = formattap.documentation (cookie.Value); Var newticket = New form authenticationTicket (Ticket version, Ticket .name, Ticket .Issadet, Ticket Examination, False, UserTech 2.CalletraRao () Ticket, Cookpath); // Encrypt the ticket and place it in the cookie cookie. Value = formatting Encrypt; System.Web.HttpContext.Current.Response.Cookies.Set (cookie);    

Why are you saving UI attendance preferences in the certification cookie?

Is there anything wrong with saving this as a separate cookie?

  http cookie cookie = new http cookie ("menu cookie"); Menukuki value. Add ("Menu Exceptions", Schedule. Minimized Menubules); Manukki.Author = DateTime.Now Add (1); Response.Cookies.Add (menuCookie);   

Then you can optionally parse the cookie to log in users only.

Comments

Popular posts from this blog

java - ImportError: No module named py4j.java_gateway -

python - Receiving "KeyError" after decoding json result from url -

.net - Creating a new Queue Manager and Queue in Websphere MQ (using C#) -