Click to See Complete Forum and Search --> : How to Create Cookies?
jesus4u
Feb 19th, 2001, 11:11 AM
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!
Kagey
Feb 19th, 2001, 04:09 PM
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")
%>
vbforums.com
Copyright Internet.com Inc., All Rights Reserved.