Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:49790 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 82786 invoked from network); 26 Sep 2010 18:04:46 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 26 Sep 2010 18:04:46 -0000 Authentication-Results: pb1.pair.com smtp.mail=tyra3l@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=tyra3l@gmail.com; sender-id=pass; domainkeys=bad Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.214.170 as permitted sender) DomainKey-Status: bad X-DomainKeys: Ecelerity dk_validate implementing draft-delany-domainkeys-base-01 X-PHP-List-Original-Sender: tyra3l@gmail.com X-Host-Fingerprint: 209.85.214.170 mail-iw0-f170.google.com Received: from [209.85.214.170] ([209.85.214.170:64795] helo=mail-iw0-f170.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id DA/19-31107-73B8F9C4 for ; Sun, 26 Sep 2010 14:04:41 -0400 Received: by iwn37 with SMTP id 37so4871277iwn.29 for ; Sun, 26 Sep 2010 11:04:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:sender:received :in-reply-to:references:date:x-google-sender-auth:message-id:subject :from:to:cc:content-type; bh=MDpoVKcbbAiYs8htJIBZDMFsqDoQkuMTYwlHzr+Vv80=; b=eGnQsOGNe/ME3Q2C1HlLX1ZfUxDbOX+/utAeSXv9+8t/9H8NBoF+f4zw11pVNL5CkI F7SwIPLlVRjae01gggZ4i5baGPk+fUNLawazqeH1mXbmWrI4TA5Us+47I2a3Eg1Cu/DN o9271KVR0PCxUtdSwvvD1ZQBgohCZONZHMX2I= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:cc:content-type; b=I8zR1FzWGqLEea5vP5GuxxOeXxb9U6Wu3M2wtKBSnuc0Pyg2Y+mLfFwXYRGZcgKgxm NmYCdvKvL0RjHiBvQjrZFkduufmxo8+HHjJy/aBbqvAyZIZGkhGmMWFcMeCiTvFBhcLo odYpdzCyIjbRpSK86PmULH7sIiR6EiK5lRocc= MIME-Version: 1.0 Received: by 10.231.171.18 with SMTP id f18mr7473788ibz.9.1285524277280; Sun, 26 Sep 2010 11:04:37 -0700 (PDT) Sender: tyra3l@gmail.com Received: by 10.231.153.1 with HTTP; Sun, 26 Sep 2010 11:04:37 -0700 (PDT) In-Reply-To: References: <3490ECDBA37FA3429C303BBB9BCC76325ECD1C945D@LMCU-BAL.services.alm> Date: Sun, 26 Sep 2010 20:04:37 +0200 X-Google-Sender-Auth: w1vH83L1kvjCkIJij6iAoESq_7U Message-ID: To: Clint Byrum Cc: ROZE Samuel , "internals@lists.php.net" Content-Type: multipart/alternative; boundary=0016e6d26c9ae5bfc304912d71af Subject: Re: [PHP-DEV] Sessions lock - not using memcached? From: info@tyrael.hu (Ferenc Kovacs) --0016e6d26c9ae5bfc304912d71af Content-Type: text/plain; charset=UTF-8 On Sun, Sep 26, 2010 at 5:23 PM, Clint Byrum 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 it seems that there will be locking with the next stable release for the memcache library. Tyrael --0016e6d26c9ae5bfc304912d71af--