note 34972 deleted from function.setcookie by vincent

From: Date: Wed, 10 Sep 2003 18:49:38 +0000
Subject: note 34972 deleted from function.setcookie by vincent
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-55985@lists.php.net to get a copy of this message
Note Submitter: joe at 4life dot ath dot cx ---- I don't anyone has said this yet, so it may be a repeat. Anyhow, while making a membership script for my website I came across a strange problem with deleting my cookies. If I just used "setcookie('name','value',time()-3600)" as it said to above, nothing would happen - the cookie would still exist! So, after the "setcookie()" statement I added "unset($_COOKIE['name'];)" and it worked perfectly! I hope that this tip will help someone who is having the same problem. Oh yeah, I don't know if it really matters, but I am using PHP 4.3.1 with "register_globals" set to "off". God bless! Joe of 4Life (4life.ath.cx)

« previous php.notes (#55985) next »