note 79834 added to function.setcookie

From: Date: Fri, 14 Dec 2007 18:57:11 +0000
Subject: note 79834 added to function.setcookie
Groups: php.notes 
Request: Send a blank email to php-notes+get-133459@lists.php.net to get a copy of this message
A little snippet to find the base domain when dealing with the possibility of multiple subdomains in HTTP_HOST $arr = explode('.', $_SERVER['HTTP_HOST']); end($arr); $cookieDomain = '.' . prev($arr) . '.' . next($arr); ---- Server IP: 216.235.15.211 Probable Submitter: 204.244.82.10 ---- Manual Page -- http://www.php.net/manual/en/function.setcookie.php Edit -- https://master.php.net/note/edit/79834 Del: integrated -- https://master.php.net/note/delete/79834/integrated Del: useless -- https://master.php.net/note/delete/79834/useless Del: bad code -- https://master.php.net/note/delete/79834/bad+code Del: spam -- https://master.php.net/note/delete/79834/spam Del: non-english -- https://master.php.net/note/delete/79834/non-english Del: in docs -- https://master.php.net/note/delete/79834/in+docs Del: other reasons-- https://master.php.net/note/delete/79834 Reject -- https://master.php.net/note/reject/79834 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#133459) next »