Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:49788 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 30676 invoked from network); 26 Sep 2010 09:15:23 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 26 Sep 2010 09:15:23 -0000 Received: from [127.0.0.1] ([127.0.0.1:25463]) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ECSTREAM id D2/91-13618-B2F0F9C4 for ; Sun, 26 Sep 2010 05:15:23 -0400 Authentication-Results: pb1.pair.com smtp.mail=sroze@lillemetropole.fr; spf=permerror; sender-id=unknown Authentication-Results: pb1.pair.com header.from=sroze@lillemetropole.fr; sender-id=unknown Received-SPF: error (pb1.pair.com: domain lillemetropole.fr from 84.96.10.190 cause and error) X-PHP-List-Original-Sender: sroze@lillemetropole.fr X-Host-Fingerprint: 84.96.10.190 telecoms.cudl-lille.fr Linux 2.4/2.6 Received: from [84.96.10.190] ([84.96.10.190:34919] helo=lmcu-edge-01.cudl-lille.fr) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id FE/21-13618-5FFFE9C4 for ; Sun, 26 Sep 2010 04:10:32 -0400 Received: from lmcu-hubcas-02.services.alm (192.168.55.5) by lmcu-edge-01.cudl-lille.fr (192.168.1.38) with Microsoft SMTP Server (TLS) id 8.1.358.0; Sun, 26 Sep 2010 10:09:32 +0200 Received: from LMCU-BAL.services.alm ([192.168.55.7]) by lmcu-hubcas-02.services.alm ([192.168.55.5]) with mapi; Sun, 26 Sep 2010 10:10:26 +0200 To: "internals@lists.php.net" Date: Sun, 26 Sep 2010 10:10:24 +0200 Thread-Topic: Sessions lock - not using memcached? Thread-Index: AQHLXVJFpvPRYIB9zEKk/4LoAVPTDw== Message-ID: <3490ECDBA37FA3429C303BBB9BCC76325ECD1C945D@LMCU-BAL.services.alm> Accept-Language: fr-FR Content-Language: fr-FR X-MS-Has-Attach: X-MS-TNEF-Correlator: acceptlanguage: fr-FR Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Subject: Sessions lock - not using memcached? From: sroze@lillemetropole.fr (ROZE Samuel) Hello, I'm working with sessions in my PHP applications. My pages can take long ti= me to be executed (~500ms) and I've simultaneous requests for the same sess= ion (Ajax requests). My problem is that I close sessions at the end of my P= HP script, so my sessions files are locked for half a second. So, simultane= ous requests (for the same session) can't be executed... simultaneously! My question is if I use memcached to store sessions, will my sessions be lo= cked or can I access to them in the same time? If there aren't it should so= lve my problem. A second question is performances: is memcached sessions faster the PHP def= ault sessions? I think yes because it doesn't make disk I/O..? Best regards, Samuel ROZE.=