IE7 & IE8 Sessions and Subdomains

Hi,

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.

Cheers, Vinay.

Anyone? Long shots are welcome too :slight_smile:

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 (put them in DEBUG mode) and also possible logging the cookies/session objects (using inspect or whatnot) so you can see what’s being requested with what context.

There’s nothing obvious that springs to mind, but the information you can gather above should help you see what’s different between the two contexts.

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 that 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 those cookies from being set.

Good luck,

Cheers,

Andy

I believe your session cookies were turned off. Turn it on via:

- Internet Explorer > Tools > Internet Options > Privacy tab > Advanced button > tick "Always allow session cookies"

Ram wrote in post #892517: