Ive got an application that lets users dynamically generate subdomains
for the website. The problem is that in IE7 and 8, when Im logged in
at http://mywebsite.com, I get my custom 404 when I try to access
http://subdomain.mywebsite.com . Once I logout though, I get the
expected page at http://subdomain.mywebsite.com .
Anyone got any idea how to resolve this issue? This problem does not
exist in IE6.
The 404 comes from the server, so I would recommend looking at the logs
them in DEBUG mode) and also possible logging the cookies/session
(using inspect or whatnot) so you can see what’s being requested with
There’s nothing obvious that springs to mind, but the information you
gather above should help you see what’s different between the two
It could be something simple like IE7 is treating a cookie domain
mywebsite.com differently from IE6 (it may be that IE7 is stricter in
requiring it to be .mywebsite.com whereas IE6 will happily accept
mywebsite.com - note the initial .).
A couple of cookie/IE7 hints found on PHP.net’s page:
If you are having issues with IE7 and setcookie(), be sure to verify
the cookie is set via http for http sites, and https for https site.
Also, if the time is incorrect on your server, IE7 will also disallow
cookies from being set.