0

My cookie will not set the full string "A&B". When I request it, I only get "A". Do I need to wrap it with something so it reads the "&", as I wonder if this character is breaking it.

controller:

Response.Cookies["Order"]["PrincId"] = model.Princ_ID.ToString();

view:

var session_princid = Request.Cookies["Order"]["PrincId"];
@session_princid 
Mate
  • 4,976
  • 2
  • 32
  • 38
user1929393
  • 4,089
  • 7
  • 30
  • 48

0 Answers0