Page 1 of 1

Passing Session to IFRAME

Posted: Wed May 16, 2007 2:06 pm
by kendall
ok i had searched this topic...but i didnt quite understand some of the comments that were stated....


I have a page that when loads starts and creates a session and then i have an iframe that needs to read that session. However the iframe will not recognise the session untill i have reloaded the page...

Do i really need to have to reload/ refresh the page?

Posted: Wed May 16, 2007 8:42 pm
by Ambush Commander
Probably, although using a header() redirect can make the reload as quick and painless as possible. Theoretically speaking, the page should receive the session cookie before having to receiving the HTML that creates the iframe, but I guess, from your assessment, that this isn't how it works in practice.