Re: Sessions lock - not using memcached?

From: Date: Sun, 26 Sep 2010 18:04:37 +0000
Subject: Re: Sessions lock - not using memcached?
References: 1 2  Groups: php.internals 
Request: Send a blank email to internals+get-49790@lists.php.net to get a copy of this message
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

« previous php.internals (#49790) next »