cookies

H

Hugh Welford

Hi trying to delete a cookie, without success it seems. The following code
to delete and check a cookie produces "yes" where I expected "no"

Anyone tell me how to delete a cookie if this code is wrong.

response.cookies("savedforum").expires = date - 1
if request.cookies("savedforum").haskeys then
response.write "yes"
else
response.write "no"


Thanks Hugh
 
C

Curt_C [MVP]

You set the date to be -1, which means expired but it's not gone since you
are still processing....

Do the expires on one page and redirect to a second and check again once.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

Cookies expire immediately, not when set to expire 2
Missing data in cookie 4
testing for cookies 3
Issue with $_COOKIE 3
cookie problems 1
Problem with Sessions / Cookies 8
Cookies Count 2
ASP Cookies 2

Members online

No members online now.

Forum statistics

Threads
473,968
Messages
2,570,154
Members
46,702
Latest member
LukasConde

Latest Threads

Top