//쿠키 생성
HttpCookie Cookie = new HttpCookie("Cookie_CarNo",CarNo);
HttpCookie Cookie1 = new HttpCookie("Cookie_JuMin",JuMin1+JuMin2);
HttpCookie Cookie2 = new HttpCookie("Cookie_InsuComp",InsuComp);
HttpCookie Cookie3 = new HttpCookie("Cookie_Gubun",Gubun);

//변수에 저장된 값 쿠키로 선언
Response.Cookies.Add(Cookie);
Response.Cookies.Add(Cookie1);
Response.Cookies.Add(Cookie2);
Response.Cookies.Add(Cookie3);

//쿠키 값 받기
Request.Cookies["Cookie_CarNo"].Value

//쿠키 삭제
Response.Cookies["MyLogin"].Expires=DateTime.Today.AddDays(-1);

+ Recent posts