note 107613 added to function.setcookie

From: Date: Wed, 22 Feb 2012 01:13:32 +0000
Subject: note 107613 added to function.setcookie
Groups: php.notes 
Request: Send a blank email to php-notes+get-186265@lists.php.net to get a copy of this message
Be careful when you delete cookies - the path and domain must be exactly the same as when the cookie was created. I recommend to always specify the path and domain, for example "/" and "example.com", otherwise the domain is the entire domain of your website (including subdomains) and the path is the path of the current URL. If you create a cookie at www.example.com , and delete it at www.example.com/logout/ , and you don't specify a path, then the cookie will not be deleted. So it's a good idea to always specify the path and domain. ---- Server IP: 212.199.163.163 Probable Submitter: 109.65.196.188 ---- Manual Page -- http://www.php.net/manual/en/function.setcookie.php Edit -- https://master.php.net/note/edit/107613 Del: integrated -- https://master.php.net/note/delete/107613/integrated Del: useless -- https://master.php.net/note/delete/107613/useless Del: bad code -- https://master.php.net/note/delete/107613/bad+code Del: spam -- https://master.php.net/note/delete/107613/spam Del: non-english -- https://master.php.net/note/delete/107613/non-english Del: in docs -- https://master.php.net/note/delete/107613/in+docs Del: other reasons-- https://master.php.net/note/delete/107613 Reject -- https://master.php.net/note/reject/107613 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#186265) next »