I'm running into some weird trouble here. I'm a very experienced PHP
programmer, but I rarely ever deal with framed sites. A client wants a
framed PHP site that needs session data passed between the frames.

I have index.php which is simply the parent with frameset HTML code that
tells the URL for the top and bottom frames.

The top frame is a nav bar that changes from time to time by means of
Javascript updating it (I know this all should've been done without frames
and Javascript, but the client is REQUIRING frames and JS is the fastest way
to update the frames).

The bottom frame is the main content area.

All three objects here (parent, top frame, bottom frame) have a common
header that does things like connect to the database, session_start() and
register session variables.

When I try to log in, the information is passed to the parent, which
authenticates the user, and then changes the top frame to a header page that
is more customized for the user. The bottom frame changes to the user's
control panel.

Here's where the problem comes in. As I move around in the bottom frame,
going from page to page, the session seems to randomly die, and then it
starts doing things like appending $PHP_SESSID to the links and stuff.

If I try to login again, it seems to authenticate correctly in the parent,
but when the parent tries to change the top frame and bottom frame, those
frames don't always seem to recognize the login attempt. It's almost like
each frame suddenly split into its own session, identified by its own
$PHP_SESSID. Sometimes it works, sometimes it doesn't.

I don't understand what's happening here. Any thoughts?

- Jonathan

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to