note 119465 added to function.unset

From: Date: Mon, 13 Jun 2016 19:50:22 +0000
Subject: note 119465 added to function.unset
Groups: php.notes 
Request: Send a blank email to php-notes+get-205712@lists.php.net to get a copy of this message
<?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 ?> ---- Server IP: 72.52.91.14 Probable Submitter: 103.229.86.116 ---- Manual Page -- http://php.net/manual/en/function.unset.php Edit -- https://master.php.net/note/edit/119465 Del: integrated -- https://master.php.net/note/delete/119465/integrated Del: useless -- https://master.php.net/note/delete/119465/useless Del: bad code -- https://master.php.net/note/delete/119465/bad+code Del: spam -- https://master.php.net/note/delete/119465/spam Del: non-english -- https://master.php.net/note/delete/119465/non-english Del: in docs -- https://master.php.net/note/delete/119465/in+docs Del: other reasons-- https://master.php.net/note/delete/119465 Reject -- https://master.php.net/note/reject/119465 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#205712) next »