Page 1 of 1

Sessions, IE, Frames

Posted: Fri Nov 27, 2009 2:33 pm
by jwarreniii
Hello, everyone-

I have a page that is called in an iframe and ie is behaving (what I consider) strangely. Here’s what is happening:

Code: Select all

header('P3P:CP="IDC DSP COR ADM DEVi TAIi PSA PSD IVAi IVDi CONi HIS OUR IND CNT"');
print_r($_SESSION);
After loading the page in IE, the first time I refresh the page the session_id changes. After the first time, it stays no matter how many times I refresh the page. In Firefox and Chrome, the session_id doesn’t ever change (as expected).

The header line is there so IE can set a session in a frame. With out it, the session_id changes on every refresh (not just the first one).

Also, the iframe and the parent are on different domains. If they are on the same domain, everything is fine.

If anyone can help, I would really appreciate it.

Thanks in advance.

Re: Sessions, IE, Frames

Posted: Fri Nov 27, 2009 9:11 pm
by jwarreniii
I just realized that only ie8 has this issue. Ie6 and 7 behave exactly like Firefox and Chrome.

This is driving be insane. If anyone has any ideas. I'd love to hear them.

Re: Sessions, IE, Frames

Posted: Fri Nov 27, 2009 9:13 pm
by daedalus__
whats this for exactly?

Re: Sessions, IE, Frames

Posted: Sat Nov 28, 2009 9:40 am
by jwarreniii
It's for an integration between our database and our customers' websites. Basically the iframe contains a customizable form where they can have users submit a query to our system and we return post data.

Re: Sessions, IE, Frames

Posted: Sat Nov 28, 2009 2:56 pm
by daedalus__
this is a kind of silly idea. but you could force a refresh as soon as an ie8 user loads the page? hopefully they wouldnt notice.

Re: Sessions, IE, Frames

Posted: Sun Nov 29, 2009 11:17 pm
by jwarreniii
I thought of that, but then the referrer changes and that is what I need to find out the parent URL. Actually, that is was I am trying to store in the session var.

Does anyone have any idea what I can do to remedy this?

Re: Sessions, IE, Frames

Posted: Mon Nov 30, 2009 12:07 am
by daedalus__
maybe you could store the referrer in the query string of the redirect or in a cookie?