Session Cookies - Bug in IE7

February 25, 2009 09:25 by nathan

Here is a problem I found recently, I had a website where the Session Cookies keep getting reset on every page load but it was happening just in IE7 not in Firefox, Safari, IE6 etc.

After a while I found the solution was that I had used an underscore character "_" in the domain (website) name e.g. my_website.localhost
This meant IE7 dropped the authentication cookie when there was an underscore in the domain name (possibly as it can not represent an underscore when it saves the referencing cookie session).

So I changed the domain name e.g. my-website.localhost and now the cookie sessions are fine in all browsers.

This is a weird problem but seems to be considered a general bug with IE7 and domain cookies. Hopefully IE8 will have a fix for this problem.

So for future reference don't use underscores in domain names, or be prepared to live without session cookies in IE7.


Currently rated 5.0 by 1 people

  • Currently 5/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5

Related posts

Comments

March 25. 2009 02:00

It's actually not a bug (although some browsers will overlook it). The W3C specifies that only alphanumeric characters and the dash be used in a domain name.

John

April 22. 2009 02:54

glad we are past this

Call Center Software

July 19. 2009 13:27

It's actually not a bug. The W3C specifies that only alphanumeric characters and the dash be used in a domain name.

club penguin cheats

Add comment


 

[b][/b] - [i][/i] - [u][/u]- [quote][/quote]



Live preview

July 31. 2010 20:15

Calendar

July 2010
SuMoTuWeThFrSa
27282930123
45678910
11121314151617
18192021222324
25262728293031
1234567