ASP cookies

Development/ASP 2017. 2. 11. 14:34

쿠키생성


<%
Response.Cookies("firstname")="Alex"
Response.Cookies("firstname").Expires=#May 10,2012#
%>




쿠키사용


<%
fname=Request.Cookies("firstname")
response.write("Firstname=" & fname)
%>




키를 가진 쿠키


<%
Response.Cookies("firstname")="Alex"
Response.Cookies("user")("firstname")="John"
Response.Cookies("user")("lastname")="Smith"
Response.Cookies("user")("country")="Norway"
Response.Cookies("user")("age")="25"
%>


출력결과 : 


firstname=Alex

user:firstname=John
user:lastname=Smith
user:country=Norway
user:age=25



'Development > ASP' 카테고리의 다른 글

ASP Cint와 같은 형변환 함수  (0) 2017.03.14
ASP Global.asa 란?  (0) 2017.02.11
ASP include  (0) 2017.02.11
ASP session  (0) 2017.02.11
ASP VBscript  (0) 2017.02.11
Posted by kunoo
,