S
Steve Grosz
I'm trying to find a way to set a cookie if it doesn't
exist.
I know with ColdFusion there are some good programming
controls and commands, but not sure about ASP.
Would something like this work?
<%
If Not Exists("beenhere")
Response.Cookies("beenhere") = "donethis"
Response.Cookies("beenhere").Expires = "July 31, 2004"
%>
What I'm trying to do is check to see if the cookie
exists, if not, set it.
I also know that with ColdFusion you don't have to
specify a actual end date, you can do it in number of
days, can you do that with ASP?
Thanks,
Steve
exist.
I know with ColdFusion there are some good programming
controls and commands, but not sure about ASP.
Would something like this work?
<%
If Not Exists("beenhere")
Response.Cookies("beenhere") = "donethis"
Response.Cookies("beenhere").Expires = "July 31, 2004"
%>
What I'm trying to do is check to see if the cookie
exists, if not, set it.
I also know that with ColdFusion you don't have to
specify a actual end date, you can do it in number of
days, can you do that with ASP?
Thanks,
Steve