Rafael Martinez Guerrero wrote:
> On Thu, 2005-04-28 at 16:18, John Madden wrote:
> 
>>>No, not at all. Three consecutive request can be served by three
>>>different webservers.
>>
>>So is there something in your SQL session handler (locking?) that prevents
>>multiple servers from clashing?
>>
>>John
>>
> 
> 
> John, I do not understand why you are so concern about multiple servers
> clashing and destroying the session data. This would be a problem if:
> 
> a) Two different users got the same SID. Something that it doesn't
> happens, at least with Zend/PHP. This would be even a problem with only
> one server.
> 
> b) Two different servers (or the same server) trying to access the
> session data for the same SID at the same time. How can a user of SM 
> generate two accesses to session data at the same time?.

Is it a possibility if one user has multiple tabs open to the same
account and sent two requests in nearly simultaneously?  I do this a
lot.  If there is no persistence, then there may be a chance that the
session data stored by the first request to be processed is lost when
the 2nd one is processed.  As slim as the chances are....  without
persistence, this may be avoidable in file-based sessions if flock were
supported by NFS (it's not), or in db-based sessions if some sort of
db-locking mechanism was availble (I don't think it is).

> And how do you
> use SM to generate two pararell accesses from two different webservers
> in the cluster? 

If you are not using any kind of persistence (you aren't, right?), then
isn't the answer obvious?  Or am I missing something?

> PS.- I do not use locking in my SQL session handler (only normal
> transactions). I have never had (or got reports from other users) about
> this problem, but I am interested in this discusion to find out if in
> theory this can happen in a webcluster running PHP. I am not convinced,
> ... yet ;)


-------------------------------------------------------
This SF.Net email is sponsored by: NEC IT Guy Games.
Get your fingers limbered up and give it your best shot. 4 great events, 4
opportunities to win big! Highest score wins.NEC IT Guy Games. Play to
win an NEC 61 plasma display. Visit http://www.necitguy.com/?r=20
--
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=2995
List Info: https://lists.sourceforge.net/lists/listinfo/squirrelmail-users

Reply via email to