#20271 [Opn->Bgs]: Unable to set a cookie with _ in the host
| From: | msopacua@php.net | Date: | Wed, 06 Nov 2002 11:39:54 +0000 |
| Subject: | #20271 [Opn->Bgs]: Unable to set a cookie with _ in the host | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-24189@lists.php.net to get a copy of this message | ||
ID: 20271
Updated by: msopacua@php.net
Reported By: scottmacvicar@ntlworld.com
-Status: Open
+Status: Bogus
Bug Type: Apache related
Operating System: All
PHP Version: 4.3.0-pre2
New Comment:
Sorry, but your problem does not imply a bug in PHP itself. For a
list of more appropriate places to ask for help using PHP, please
visit http://www.php.net/support.php as this bug system
is not the
appropriate forum for asking support questions.
Thank you for your interest in PHP.
Your nameserver is broken, see:
http://www.rfc-editor.org/rfc/std/std13.txt
Secion 3.5. Preferred name syntax, Page [10], shows allowed characters
for hostnames. The underscore is not one of them.
Previous Comments:
------------------------------------------------------------------------
[2002-11-05 18:54:14] scottmacvicar@ntlworld.com
If you create a host with an underscore in the domain you are unable to
set cookie. I created one with the name site_v1.domain.com and any
attempt to set a cookie was unsuccessful, I then used the IP address
instead and it worked fine.
I then tested this on a different system with the following code.
<?php
setcookie('name', 'value', time()+3600);
echo '<pre>';
print_r($_COOKIE);
echo '</pre>';
?>
Yes i did reload the page. I've tried php 4.2.3 and 4.3.0-pre2
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=20271&edit=1