note 36773 deleted from function.setcookie by tularis
| From: | tularis@php.net | Date: | Sun, 02 Jan 2005 14:23:13 +0000 |
| Subject: | note 36773 deleted from function.setcookie by tularis | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-82589@lists.php.net to get a copy of this message | ||
Note Submitter: contact at linterweb dot com
----
With some browser IE 6.0, you can not put a cookie, if the serveur is not the server real name.
It s to solve the problem
if($_SERVER['HTTP_HOST']!=$_SERVER['SERVER_NAME'])
{header ("location:http://".$_SERVER['SERVER_NAME']."
".$_SERVER['REQUEST_URI']."");
exit();}