Re: deleting all my cookies

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



setcookie("$name",'',time()-3600);

cheers


On Wed, 30 Mar 2005 15:29:47 +0100, AndreaD
<andrea.davidson@xxxxxxxxxxxx> 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, "");
> }
> }
> }
> 
> Please help. Any suggestions welcome.
> 
> AD
> 
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
> 
>

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux