note 84076 added to function.setcookie

From: Date: Thu, 26 Jun 2008 16:28:44 +0000
Subject: note 84076 added to function.setcookie
Groups: php.notes 
Request: Send a blank email to php-notes+get-140844@lists.php.net to get a copy of this message
the cookie use is different as you're using firefox or IE so if you've got probleme to kill cookie dont forget to specify domain. setcookie($name, "", time()-60*60*24*30, '/'); in procedurale methode theire as usual no probleme because the place where is created the cookie is the same you kill it. but in POO point of view, if you got an object who manage cookie, it can be call from anywhere of your site. so the domaine mismatch... dont forget '/' to get your cookie grant from all you directory. ---- Server IP: 69.147.83.197 Probable Submitter: 82.66.78.117 ---- Manual Page -- http://www.php.net/manual/en/function.setcookie.php Edit -- https://master.php.net/note/edit/84076 Del: integrated -- https://master.php.net/note/delete/84076/integrated Del: useless -- https://master.php.net/note/delete/84076/useless Del: bad code -- https://master.php.net/note/delete/84076/bad+code Del: spam -- https://master.php.net/note/delete/84076/spam Del: non-english -- https://master.php.net/note/delete/84076/non-english Del: in docs -- https://master.php.net/note/delete/84076/in+docs Del: other reasons-- https://master.php.net/note/delete/84076 Reject -- https://master.php.net/note/reject/84076 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#140844) next »