--- Jonathan Hilgeman <[EMAIL PROTECTED]> wrote:
> 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 think all of your questions would be answered with a strong
understanding of how frames work.

Basically, a frame is an embedded resource much like an image. It has a
URL that must be retrieved separately by the browser. When the browser
retrieves the parent, it parses the HTML, and then fetches each additional
resource needed to render the page.

So, given this, you can do this (assuming three frames- adjust as
necessary):

Open three identical browsers. On each of them, fetch a sub-frame of the
page in question. Assemble the browsers, so that they appear to look a lot
like the page in question.

Now, pass session information between them.

Regardless of what you mean by that, it should be clear that nothing
except client-side scripting is going to happen until your browser makes
another request. PHP is sitting on the server, twiddling its thumbs. Now,
if one of these browsers requests a new URL, PHP can use the session
information in generating the response, but it can do nothing for the
other browser windows. Does this make sense?

Basically, all of the frames will share the same session, simply because
it's the same browser sending each request.

Hope that helps.

Chris

=====
Chris Shiflett - http://shiflett.org/

PHP Security Handbook
     Coming mid-2004
HTTP Developer's Handbook
     http://httphandbook.org/

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

Reply via email to