-
Hello all. I am new to writing cookies. I have a website and my user registration and log in page work fine. I can limit their session on the site by using a session variable but I now want to use cookies to recognize my registered users and populate various fields automatically so that my site becomes more functional.
Who can help and show mw code?
thanks!
-
Placing Cookies
<%
Response.Cookies("name").Expires = Date + 7
'Response.Cookies("name").Expires = #January 01, 1999#
'Response.Cookies("name").Secure = True
Response.Cookies("name").Path = "/path"
Response.Cookies("name").Domain = "www.domain.com"
Response.Cookies("name") = "Kagey One"
'Response.Cookies("name")("first") = "Kagey"
'Response.Cookies("name")("last") = "One"
%>
Reading Cookies
<%
Response.write request.Cookies("name")
%>