Re: [PHP] deleting all my cookies

2005-03-30 Thread John Nichel
AndreaD wrote: I have a button that sets a variable when pressed. I then try delete any cookies using the following code but no joy. if (isset($scrub)){ echo "this works"; if (isset($_COOKIE['cookie'])) { foreach ($_COOKIE['cookie'] as $name => $quantity) { setcookie($name, ""); } } } Give your

Re: [PHP] deleting all my cookies

2005-03-30 Thread Ken
setcookie("$name",'',time()-3600); cheers On Wed, 30 Mar 2005 15:29:47 +0100, AndreaD <[EMAIL PROTECTED]> wrote: > I have a button that sets a variable when pressed. I then try delete any > cookies using the following code but no joy. > > if (isset($scrub)){ > echo "this works"; > if (isset($_C

[PHP] deleting all my cookies

2005-03-30 Thread AndreaD
I have a button that sets a variable when pressed. I then try delete any cookies using the following code but no joy. if (isset($scrub)){ echo "this works"; if (isset($_COOKIE['cookie'])) { foreach ($_COOKIE['cookie'] as $name => $quantity) { setcookie($name, ""); } } } Please help. Any sugg