PHP session variables in iframe
Posted on 2008-10-06
I have a script that run smoothly without the iframe, but when i use the iframe in IE and safari it doesn't work properly.
I am searching some information from a database and display them, when I log in it create a instance of a class with all the login information encapsulate it. I save that instance variable in a session ($_SESSION['login']=&$Login) and pass it to other pages. This works great with me. But when I jump one page to the other page within iframe at the first time my php script say the session variable $_SESSION['login'] is not set, but I can go back using the browser back button and come back again, then the php script say the session variable is set and works fine.
I know this is little bit confusing but any help is appreciate.