Hi,
My homepage is made up of afew frames, a banner, a frame on the left containing links to navigate the site and a content frame in the center where everything is targeted to.
My problem is i cant recall session variables values to a form on the content frame. The user logs in in the left frame and the session is started. Php echos on this frame display the correct username, however all echos to pages in the content frame display nothing.
Do i need to pass values from one page to another for this to work?
Frames and session handling
Moderator: General Moderators
well remember that frames are all separate web pages themselves. You can use $_SESSION[] vars on your content frame, but you're goign to need to make sure you have your session start stuff included in that page. You will also need to reload the page after you log in on the left frame to get all of your session vars from the server. You can do taht with something like:
as an alternative, if you want to just pass vars from one frame to another, that's an option with js and might be a good one if you don't want to reload the frame and you're not dealing with sensitive information.
Burr
Code: Select all
top.contentFrame.reload();Burr