Cookie Question?

Results 1 to 2 of 2

Thread: Cookie Question?

  1. #1
    Martin Guest

    Default Cookie Question?

    How do I make a subCookie to Expire?<BR><BR>For example I have a Cookie collection of these Cookies:<BR><BR>Request.Cookies("TEST")("id1")<BR> Request.Cookies("TEST")("id2")<BR>Request.Cookies( "TEST")("id3")<BR>Request.Cookies("TEST")("id4")<B R><BR>Now I want to make the SubCookie ("id2") to expire, how do I do?<BR><BR>Not like this: Response.Cookies("TEST")("id2") = ""<BR>Then the SubCookie still exists, but with an empty string!<BR><BR>Could I ReDim the collection so I get a new Cookie collection with just 3 keys?<BR><BR>Thanks in advance!<BR>Martin Republic AB Sweden

  2. #2
    Join Date
    Dec 1969

    Default RE: Cookie Question?

    Good question.<BR><BR>Try this ...<BR>Response.Cookie("TEST")("id2") = #01-Jan-00#<BR><BR>When the user logs off the cookie should be gone?!<BR><BR>Let us know if this works for you ... <BR><BR>I like your dictionary/hash/associate-array cookie values. I use them all the time.<BR><BR>HTH<BR>Steve

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts