//쿠키 생성
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);
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);
'.net' 카테고리의 다른 글
닷넷에서 쿠키로 인증된 세션유지하기 (2) | 2007.05.03 |
---|---|
web.config의 location Tag를 이용한 효율적인 구성 설정 (0) | 2007.05.03 |
Server Variables (0) | 2007.05.03 |
ADO.NET DB연결 문자열 - CoreLab.MySql (1) | 2007.05.03 |
닷넷 공부에 꽤 큰 도움이 되는 사이트 (1) | 2007.05.03 |