brain dead cookie question

  • Thread starter Stephanie Stowe
  • Start date
S

Stephanie Stowe

I can set a cookie. How do I delete it? I want to delete it BEFORE the
session ends or the browser is closed. I thought

Response.Cookies("JSPAccess").Expires = #2000-01-01#

would do it. But I am wrong.

Thnaks

S
 
M

Manohar Kamath [MVP]

Do not set a date when you set a cookie, and that will delete it when the
browser is closed.
 
J

J. Baute

You could always set the cookies value to an empty string to "delete" it.
That way if you request it again afterwards, it will be as if it isn't
there.
 

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


Members online

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,576
Members
45,054
Latest member
LucyCarper

Latest Threads

Top