note 119465 deleted from function.unset by cmb

From: Date: Mon, 13 Jun 2016 22:24:48 +0000
Subject: note 119465 deleted from function.unset by cmb
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-205714@lists.php.net to get a copy of this message
Note Submitter: none ---- <?php $name= "test"; $value="What's up man?"; /*change value to see the difference when setting cookie is enabled.*/ $expire=time()+(60*60*24*7); //adding seconds //setting cookie setcookie($name,$value,$expire); //you can unset cookie any way given below: 4 ways setcookie($name); //way 1 setcookie($name, null, $expire); // way 2 setcookie($name, $value, time()-3600); // way3 setcookie($name, null, time()-3600); // way4 ?>

« previous php.notes (#205714) next »