note 39608 added to reserved.variables
| From: | space at nospam dot org | Date: | Wed, 04 Feb 2004 12:50:59 +0000 |
| Subject: | note 39608 added to reserved.variables | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-64631@lists.php.net to get a copy of this message | ||
CAVEAT: HTTP_HOST & firewalls/port redirects.
it looks like a reasonable thing to use HTTP_HOST to set the domain for a cookie, because
you'll always have the proper adress (as seen from the browser) referred there and not the
server ip/adress itself [which might be different behind a firewall]. but if your server is
firewalled AND has a different port number (:81 etc), HTTP_HOST will not only have the called IP,
but also the called port (e.g. xxx.xxx.xxx.xxx:81). settings cookies for that adress will yield no
results.
----
Manual Page -- http://www.php.net/manual/en/reserved.variables.php
Edit -- http://master.php.net/manage/user-notes.php?action=edit+39608
Delete -- http://master.php.net/manage/user-notes.php?action=delete+39608&report=yes
Reject -- http://master.php.net/manage/user-notes.php?action=reject+39608&report=yes
Search -- http://master.php.net/manage/user-notes.php