[PHP-WIN] How do you delete a cookie on the spot?

2004-05-30 Thread Daniel Anderson
Hi, can anyone tell me how to clear a cookie when the line comes up? Because the following: setcookie("name",""); does work yes, but not well enough. I need it to remove that cookie there and then. For example: You go through a login process to access a page, it sets a cookie with username and p

Re: [PHP-WIN] How do you delete a cookie on the spot?

2004-05-30 Thread Ross Honniball
I have never personally used cookies, but something I read recently indicated the following. This is in relation to a browsers implementation of cookie behaviour: 1. The way you delete a cookie is to set it's expiry date to a date in the past 2. Browsers are not required to delete the cookie imme