note 36773 added to function.setcookie
| From: | contact at linterweb dot com | Date: | Wed, 22 Oct 2003 03:10:46 +0000 |
| Subject: | note 36773 added to function.setcookie | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-59089@lists.php.net to get a copy of this message | ||
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();}
----
Manual Page -- http://www.php.net/manual/en/function.setcookie.php
Edit -- http://master.php.net/manage/user-notes.php?action=edit+36773
Delete -- http://master.php.net/manage/user-notes.php?action=delete+36773&report=yes
Reject -- http://master.php.net/manage/user-notes.php?action=reject+36773&report=yes
Search -- http://master.php.net/manage/user-notes.php