Results 1 to 3 of 3

Thread: Read/Write Cookies

  1. #1

    Thread Starter
    Hyperactive Member
    Join Date
    Aug 2000
    Posts
    343

    Angry 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

  2. #2
    PowerPoster abhijit's Avatar
    Join Date
    Jun 1999
    Location
    Chit Chat Forum.
    Posts
    3,228
    <% @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>&nbsp;</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

  3. #3

    Thread Starter
    Hyperactive Member
    Join Date
    Aug 2000
    Posts
    343

    Talking 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
  •  



Click Here to Expand Forum to Full Width