note 50303 rejected from features.cookies by nlopess

From: Date: Thu, 24 Feb 2005 18:48:20 +0000
Subject: note 50303 rejected from features.cookies by nlopess
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-85512@lists.php.net to get a copy of this message
Note Submitter: PowowVN at yahoo dot com ---- How to change value of cookie? I have cookie name 'abc' with value 'abc' This is code: $abc = @$HTTP_GET_VARS['abc']; if(!isset($abc)) { }else if($abc == "xyz"){ if (isset($_COOKIE["abc"])){ @setcookie('abc', '', time()-60*60*24*2); @setcookie('abc', 'xyz', time()+60*60*24*2); } } else if ($abc == "en" ) { @setcookie('abc', 'en', time()+60*60*24*2);} Why value of cookie name 'abc' cann't change when I type ?abc=xyz Please tell me how to click a link for change value of cookie?

« previous php.notes (#85512) next »