Cookie Dictionary

Results 1 to 3 of 3

Thread: Cookie Dictionary

  1. #1
    Reuben Guest

    Default Cookie Dictionary

    How do I delete a single entry in a Cookie Array. I&#039ve tried using the expires method but it doesn&#039t seem to work on a single cookie from the array, rather it will only delete the whole cookie array. e.g. Response.cookies("basket")(item).expires = date - 1 doesn&#039t work but Response.cookies("basket").expires = date - 1 does work. Anyone????

  2. #2
    Neil Popham Guest

    Default RE: Cookie Dictionary

    why do you need to delete it? if it&#039s top-secret it shouldn&#039t be there in the first place...<BR><BR>can you not just do<BR><BR>&#062; Response.Cookies("basket")("SpuriousItem") = ""<BR><BR>or<BR><BR>&#062; Response.Cookies("basket")("SpuriousItem") = Null<BR><BR>???<BR><BR>

  3. #3
    Reuben Guest

    Default RE: Cookie Dictionary

    Thanks Neil, it&#039s for a shopping cart and I have the products stored in a dictionary. However, when I set the cookies = "" for items that are removed from the basket, the cookies are still there, but have a value of "". I tried your NULL idea but that didn&#039t work. Any other suggestions????

Posting Permissions

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