Make SubCookie Expire?

Results 1 to 2 of 2

Thread: Make SubCookie Expire?

  1. #1
    Martin Guest

    Default Make SubCookie Expire?

    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<BR><BR>

  2. #2
    Raj Chilka Guest

    Default RE: Make SubCookie Expire?

    I don&#039t know but try like this, Let me know weather it solved your problem<BR><BR>Response.cookies("Test1")("id1")=Re quest.form("Text1")<BR>Response.cookies("Test2")(" id2")=Request.form("Text2")<BR>Response.Expires("T est2").Expires = Date - 1<BR><BR>Request.cookies("Test1")("Id1")<BR>Reques t.Cookies("Test2")("Id2")

Posting Permissions

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