Passing Session to IFRAME

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
User avatar
kendall
Forum Regular
Posts: 852
Joined: Tue Jul 30, 2002 10:21 am
Location: Trinidad, West Indies
Contact:

Passing Session to IFRAME

Post 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?
User avatar
Ambush Commander
DevNet Master
Posts: 3698
Joined: Mon Oct 25, 2004 9:29 pm
Location: New Jersey, US

Post 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.
Post Reply