|
-
Jun 18th, 2001, 03:22 AM
#1
Thread Starter
Hyperactive Member
Read/Write Cookies
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
-
Jun 18th, 2001, 06:07 AM
#2
<% @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>
Everything that has a computer in will fail. Everything in your life, from a watch to a car to, you know, a radio, to an iPhone, it will fail if it has a computer in it. They should kill the people who made those things.- 'Woz'
save a blobFileStreamDataTable To Text Filemy blog
-
Jun 18th, 2001, 02:50 PM
#3
Thread Starter
Hyperactive Member
Thanks abhijit
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|