note 85664 added to function.setcookie

From: Date: Thu, 11 Sep 2008 09:58:30 +0000
Subject: note 85664 added to function.setcookie
Groups: php.notes 
Request: Send a blank email to php-notes+get-144331@lists.php.net to get a copy of this message
Beware of the Cookie Monster (http://preview.tinyurl.com/5964ho) -- always set $secure to true for cookies set within secure environments (i.e. when your code is being accessed via HTTPS). Also be advised that PHP's session manager doesn't do that automatically -- by default starting a session within a secure environment sets a cookie which is then accessible via non-secure channels. For sessions started in secure environments use <? INI_Set('session.cookie_secure',true); ?> before starting the session. ---- Server IP: 69.147.83.197 Probable Submitter: 81.181.249.130 ---- Manual Page -- http://www.php.net/manual/en/function.setcookie.php Edit -- https://master.php.net/note/edit/85664 Del: integrated -- https://master.php.net/note/delete/85664/integrated Del: useless -- https://master.php.net/note/delete/85664/useless Del: bad code -- https://master.php.net/note/delete/85664/bad+code Del: spam -- https://master.php.net/note/delete/85664/spam Del: non-english -- https://master.php.net/note/delete/85664/non-english Del: in docs -- https://master.php.net/note/delete/85664/in+docs Del: other reasons-- https://master.php.net/note/delete/85664 Reject -- https://master.php.net/note/reject/85664 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#144331) next »