Re: Recursing sessions?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Richard Lynch wrote:

> On Fri, June 30, 2006 11:11 am, Mark wrote:
>> Here is a problem I am seeing,
>>
>> A browser hits a site the uses frames, for the sake of argument, lets
>> call
>> this site a squirrelmail web mail server.
>>
>> The browser seems to spawn a number of requests at the same time (I
>> think
>> one for each content frame), I get  multiple PS_READ_FUNC calls, and
>> then
>> get multiple PS_WRITE_FUNC calls.
>>
>> Last PS_WRITE_FUNC call wins.
>>
>> Anyone else see this?
> 
> Of course.
> 
>> Anyone have a good fix?
> 
> As I recall, you HAVE to get the OUTER php page, with the FRAMESET in
> it, to start the session, and then in that page, all the FRAME page
> requests will be using the same session, because it has already been
> established.
> 
> I think I even went so far as embedding the session_id in the URLs for
> the FRAME SRC="...SID=SID" and then I made sure each frame page was
> using that ID.
> 

That doesn't fix the problem at all. The problem isn't the "creation" of the
session, it is the simultaneous access of the session data without
synchronization. When a browser a frame set, it will request all the frame
at once.

If the frames do any sort of processing on the session information, as is
the case with squirrelmail, the last session to exit will overwrite all the
changes made by prior frames. This can corrupt session information or lose
versions of information. 

It is a HUGE problem that I don't see ANYONE addressing.

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


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux