469,323 Members | 1,575 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,323 developers. It's quick & easy.

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
Jul 19 '05 #1
2 2521
Hi Glen,

If we use:

Response.Cookies(x) = ""
Response.Cookies(x).Expires = "January 1, 1999"
Response.Cookies(x).Domain = ""
Will this help?

Luke

Jul 19 '05 #2
Anyone have any thoughts on this??

Thanks!!

Glen
Jul 19 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

6 posts views Thread by Mark | last post: by
7 posts views Thread by Bert | last post: by
1 post views Thread by Alex Nitulescu | last post: by
10 posts views Thread by Stephan Schulz | last post: by
13 posts views Thread by yawnmoth | last post: by
12 posts views Thread by Don Juan | last post: by
5 posts views Thread by yawnmoth | last post: by
reply views Thread by Gurmeet2796 | last post: by
reply views Thread by mdpf | last post: by
reply views Thread by harlem98 | last post: by
reply views Thread by listenups61195 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.