<?xml version="1.0" encoding="utf-8"?>
<rss xmlns:php="http://php.net/xsl" xmlns:dc="http://purl.org/dc/elements/1.1/" version="2.0">
  <channel>
    <title>l4x.org</title>
    <link>/Story//rss20.xsl/php</link>
    <description>l4x.org</description>
    <item>
      <title>Underscores in domain names</title>
      <link>/28275</link>
      <guid>/28275</guid>
      <description>&lt;p&gt;
Without big thinking I set up a test domain for a php based cms containing an underscore (_)
(www_example.your.domain). The web interface to the domain server accepted the domain name without a problem. Subsequently I tested the cms with Firefox, everything worked fine. Then I wanted to try everything with Internet Explorer (6.0, XP, SP2) and the merchandising system surprisingly did not work. Searching for the error it turned out that logins also did not work. So the session management was quickly blamed. Trying to narrow the error down even a simple
&lt;pre&gt;
session_start();
print_r($_SESSION);
$_SESSION['x'] = 1;
&lt;/pre&gt;
did not work as expected. Then I vaguely remembered that IE did not like underscores in cookie names. So I tried www-example.your.domain and bingo.&lt;/p&gt;
&lt;p&gt;Checking &lt;a&gt;RFC1738&lt;/a&gt;
section 3.1 only a-z, 0-9 and - are allowed. So it's indeed a broken
domain name. Strange that the dns system did pass it through though.&lt;/p&gt;</description>
      <pubDate>Thu, 01 Jan 1970 01:00:00 +0100</pubDate>
    </item>
  </channel>
</rss>
