You are here: Re: [PHP] deleting all my cookies « PHP « IT news, forums, messages
Re: [PHP] deleting all my cookies

Posted by Ken on 03/30/05 17:32

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

cheers


On Wed, 30 Mar 2005 15:29:47 +0100, AndreaD
<andrea.davidson@silene.co.uk> 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
>
>

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация