Welcome Guest, Not a member yet? Register   Sign In
IE7 Cookie weirdness
#1

[eluser]Mirage[/eluser]
Hi,

I ran into an odd issue with Internet Explorer 7 and I hope someone here has encountered this before and can point me to a place where to look...

I maintain exact duplicates of my projects on my dev machine (OS X 10.5.4, Entropy PHP 5.2.5 stack) and my deployment servers (CentOs 4, PHP 5.2.5). The PHP stacks are very comparable.

The issue seems to be that cookies are not sticking in IE7 on the deployment servers. But they work fine on the dev machine. Oddly enough, IE6 works on both. Well maybe not that odd all things considered...

So, anyone care to venture a guess as to what might be going on here?

I'm using Oscar Bajner's OBSession library. Works great on other sites and never had a problem. I really don't think that's where it's at. Given that IE7 works on the localhost, but not on live server kinda seems to prove that.

Thanks a bunch in advance.

Cheers,
-m
#2

[eluser]Sam Dark[/eluser]
Are you dealing with frames or cross domain AJAX queries?
#3

[eluser]flojon[/eluser]
I had some issues with an application which I think was related to IE7. I never managed to recreate it locally. But I added the following to my controller:
Code:
header('P3P: CP="IDC DSP COR ADM DEVi TAIi PSA PSD IVAi IVDi CONi HIS OUR IND CNT"');
session_set_cookie_params(0, '/', '.myserver.com');
And it seems the problem went away. There has been no problems since.

The first line is setting some kind of privacy policy. You can read more here:
http://en.wikipedia.org/wiki/P3P
#4

[eluser]Mirage[/eluser]
Hi guys -

@Sam: No x-domain ajax or frames. Just plain HTML pages.

@flojon: I'll give that a whirl. Can you tell me more about this header or where I can read up on it?

Thanks,
=m
#5

[eluser]Sam Dark[/eluser]
http://en.wikipedia.org/wiki/P3P
#6

[eluser]Mirage[/eluser]
Thanks a bunch Sam - That worked like a charm!
#7

[eluser]Sam Dark[/eluser]
Thank flojon, he gave info.
#8

[eluser]Mirage[/eluser]
Sorry - of course... Thanks flojon!

-m
#9

[eluser]flojon[/eluser]
Good to hear!

Regards,
Jonas
#10

[eluser]clariz[/eluser]
Im sorry flojon.. But that still won't work on me.. :-S
Do you have more suggestions?
Thanks in advance.




Theme © iAndrew 2016 - Forum software by © MyBB