PHP Sessions fail in IE if there is an underscore in the domain name

This one is a new one on me ( and I got bitten with it today😦 )

********************WARNING***********************

There’s a bug in Internet explorer in which sessions do not work if the name of the server is not a valid name. For example…if your server is called web_server (_ isn’t a valid character), if you call a page which uses sessions like http://web_server/example.php your sessions won’t work but sessions will work if you call the script like this

[IP NUMBER]/example.php

Took me a lot of time to find out why my PHP sessions worked perfectly in Firefox and Opera but they didn’t work in internet explorer

***************************************************

From The comments in the PHP manual page for Sessions

Tagged with:
Posted in PHP, Web Development

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: