>> Well, then you solve the problem.  It's not as easy as you think.  Just
>> ask Jonathan.  ;)  It's not a matter of PHP "just handling it" for you.
>> The browser is too dumb to know that each window/tab you have open
>> should be using a different session cookie.  The problem has been known
>> for a couple years and probably won't be solved until later on in the
>> 1.5 series.
>
> So then, PHP doesn't allow concurrent access to the same session?  What if
> those sessions were SQL-based?

Nope.  This is from the PHP manual:

"Session data is usually stored after your script terminated without the
need to call session_write_close(), but as session data is locked to
prevent concurrent writes only one script may operate on a session at any
time. When using framesets together with sessions you will experience the
frames loading one by one due to this locking. You can reduce the time
needed to load all the frames by ending the session as soon as all changes
to session variables are done."

This kind of thing you can see when you login.  Most often the left frame
will be half loaded before the right frame has even began to show, this
isn't because the left frame is faster, it's because PHP is suspending
access to the session file while the left frame has it open.

> I sure wish I could've known that this setup didn't work, since I've been
> running it for the past 3 (4?) years without any trouble. :)

You've been lucky.  A lot of the times, session information gets corrupted
because user a logs in, then user b logs in from the same browser/new
tab/new window, the cookie information points user b to the session file
of user a, then the preferences for user b get loaded over the top of the
session information for user a... the fact it hasn't happened to you yet
is a good thing, and as Paul mention, something we are working on trying
to fix.


-- 
Jonathan Angliss
<[EMAIL PROTECTED]>



-------------------------------------------------------
This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting
Tool for open source databases. Create drag-&-drop reports. Save time
by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc.
Download a FREE copy at http://www.intelliview.com/go/osdn_nl
--
squirrelmail-users mailing list
Posting Guidelines: 
http://squirrelmail.org/wiki/wiki.php?MailingListPostingGuidelines
List Address: [email protected]
List Archives: 
http://news.gmane.org/thread.php?group=gmane.mail.squirrelmail.user
List Archives:  http://sourceforge.net/mailarchive/forum.php?forum_id)95
List Info: https://lists.sourceforge.net/lists/listinfo/squirrelmail-users

Reply via email to