[prev in list] [next in list] [prev in thread] [next in thread] 

List:       php-internals
Subject:    Re: [PHP-DEV] Sessions lock - not using memcached?
From:       Ferenc Kovacs <info () tyrael ! hu>
Date:       2010-09-26 18:04:37
Message-ID: AANLkTimCpbYJkN_Gy7b_LCzTwEZZ0pJzFiNCO5Tt4mkp () mail ! gmail ! com
[Download RAW message or body]


On Sun, Sep 26, 2010 at 5:23 PM, Clint Byrum <clint@ubuntu.com> wrote:

>
> On Sep 26, 2010, at 1:10 AM, ROZE Samuel wrote:
>
> > Hello,
> >
> > I'm working with sessions in my PHP applications. My pages can take long
> time to be executed (~500ms) and I've simultaneous requests for the same
> session (Ajax requests). My problem is that I close sessions at the end of
> my PHP script, so my sessions files are locked for half a second. So,
> simultaneous requests (for the same session) can't be executed...
> simultaneously!
> >
> > My question is if I use memcached to store sessions, will my sessions be
> locked or can I access to them in the same time? If there aren't it should
> solve my problem.
> >
> > A second question is performances: is memcached sessions faster the PHP
> default sessions? I think yes because it doesn't make disk I/O..?
> >
>
> No, the default memcache session handler has no locking.
>
>
http://pecl.php.net/package-info.php?package=memcache&version=3.0.4

<http://pecl.php.net/package-info.php?package=memcache&version=3.0.4>it
seems that there will be locking with the next stable release for the
memcache library.

Tyrael


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic