Hello,
Can someone please give me the code on how to read(get)/write(create) a cookie. As well as how to determine how long the cookie must "stay alive", before it expires.
Thanks,
T
Printable View
Hello,
Can someone please give me the code on how to read(get)/write(create) a cookie. As well as how to determine how long the cookie must "stay alive", before it expires.
Thanks,
T
<% @language="vbscript" %>
<%
Response.Cookies("MyCookie") = "Cookie"
Response.Cookies("MyCookie").Expires = "July 31, 2001"
Response.Cookies("MyPasswd") = "Password"
Response.Cookies("MyPasswd").Expires = "July 31, 2001"
%>
<html>
<head>
<meta name="vi60_dtcscriptingplatform" content="client (ie 4.0 dhtml)">
<meta name="generator" content="microsoft visual studio 6.0">
</head>
<body>
<p> </p>
<%
Response.Write Request.Cookies("MyCookie")
Response.Write Request.Cookies("MyPasswd")
%>
</body>
</html>
-