Response.Cookies(x).Domain ???

Ask a Question related to ASP, Design and Development.

  1. #1

    Default Response.Cookies(x).Domain ???

    Hi,

    I am looking for a way to delete (expire) all the cookies that we've
    ever written to the user's machine. I have found several scripts,
    however I have come across one "gotcha."

    The scripts I have found all look something like this:

    response.buffer = "true"
    dim x
    for each x in Request.Cookies
    Response.Cookies(x) = "must be something"
    Response.Cookies(x).Expires = "January 1, 1999"
    next

    One cookie gets set like this:

    Response.Cookies(x).Domain = ".henryschein.com"

    so that we can retrieve it from 'www.henryschein.com' and
    'info.henryschein.com'

    The problem is that the script above does not delete it.

    Anyone have any idea why this is?? Anyone have a script that properly
    deletes ALL the cookies that you've ever written to the user's
    machine??

    Thanks!!

    Glen
    Glen Guest

  2. Similar Questions and Discussions

    1. How to post data to a different domain and recieve a response
      Hi, I have a web application running inside an organization and I need to post some data to an asp page sitting outside the organization How do...
    2. SLOW response from .NET Web Service on Domain Controller
      We have several servers with .NET Framework 1.1 istalled. we use the servers to work with .Net Web Services. All servers are working fine except...
    3. Cookies valid for more than one domain
      Hello, Ever tried to set a cookie valid for more than one domain? I read several articles (on PHPBuilder, devshed and so on) with ways I...
    4. AW7 vs. DirectorMX for psychology experiment using response times AND response answers
      Hello, I'm very new to application design, but need to develop a web based application to use at multiple schools as part of an experimental...
    5. Pasing a reference to my page's Response.Cookies collection
      I would like to have my ASPX page call a function intended to make changes the the current Page.Response.Cookies. I had thought that to allow the...
  3. #2

    Default RE: Response.Cookies(x).Domain ???

    Hi Glen,

    If we use:

    Response.Cookies(x) = ""
    Response.Cookies(x).Expires = "January 1, 1999"
    Response.Cookies(x).Domain = ""


    Will this help?

    Luke

    MSFT Guest

  4. #3

    Default Re: Response.Cookies(x).Domain ???

    Anyone have any thoughts on this??

    Thanks!!

    Glen
    Glen Guest

Posting Permissions

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

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139