Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:28368 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 63038 invoked by uid 1010); 16 Mar 2007 10:28:31 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 63023 invoked from network); 16 Mar 2007 10:28:31 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 16 Mar 2007 10:28:31 -0000 Authentication-Results: pb1.pair.com smtp.mail=rquadling@googlemail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=rquadling@googlemail.com; sender-id=pass; domainkeys=bad Received-SPF: pass (pb1.pair.com: domain googlemail.com designates 64.233.182.186 as permitted sender) DomainKey-Status: bad X-DomainKeys: Ecelerity dk_validate implementing draft-delany-domainkeys-base-01 X-PHP-List-Original-Sender: rquadling@googlemail.com X-Host-Fingerprint: 64.233.182.186 nf-out-0910.google.com Linux 2.4/2.6 Received: from [64.233.182.186] ([64.233.182.186:36324] helo=nf-out-0910.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id B9/21-46796-D417AF54 for ; Fri, 16 Mar 2007 05:28:30 -0500 Received: by nf-out-0910.google.com with SMTP id l35so211663nfa for ; Fri, 16 Mar 2007 03:28:27 -0700 (PDT) DKIM-Signature: a=rsa-sha1; c=relaxed/relaxed; d=googlemail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:reply-to:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=ZEIjaD/fLPqEV94m1RAGpHEDI5z7bE3WGgwxDfJuBGN2jYeLTs8GrPqh80rRE18QVVpi+avMhwVAi/NBELjaa8AentLLfUvnu20CTQ5jwuBSC2ct+enOAE00IJ8cksjDOn78rQZQpnx7QOvenSqaKnYT5D+1gELBAXtXhwa5scM= DomainKey-Signature: a=rsa-sha1; c=nofws; d=googlemail.com; s=beta; h=received:message-id:date:from:reply-to:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=tnVMhZNfgNXl5PEAH0uimB0ye9lR/1b8K8TKPyiqJZfM+SjfJ+Z/tPuKXNEPkSav9icemwGd51nA7DIoNw0NRaVv4189I3f5KoHlC8DqbJEfScsr8ndQPZgcphalIdCbJZ2P+b1KTaOGMqNJhc9BebFiNKWl//cosU49R2tUsKE= Received: by 10.78.123.4 with SMTP id v4mr868608huc.1174040906849; Fri, 16 Mar 2007 03:28:26 -0700 (PDT) Received: by 10.78.48.5 with HTTP; Fri, 16 Mar 2007 03:28:26 -0700 (PDT) Message-ID: <10845a340703160328y3b87e4d4ubdef684326eff492@mail.gmail.com> Date: Fri, 16 Mar 2007 10:28:26 +0000 Reply-To: RQuadling@GoogleMail.com To: ceo@l-i-e.com Cc: "Markus Fischer" , internals In-Reply-To: <49068.216.230.84.67.1173986475.squirrel@www.l-i-e.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <10845a340703140437q519bd232sc9b7dca53cef1e91@mail.gmail.com> <45F84785.9030304@fischer.name> <10845a340703150215v1dfe329ev8aaff25e3fcb5cbf@mail.gmail.com> <49068.216.230.84.67.1173986475.squirrel@www.l-i-e.com> Subject: Re: [PHP-DEV] A request for code change : Repeated opening and closing the session leads to a LOT of Set-Cookie headers. From: rquadling@googlemail.com ("Richard Quadling") On 15/03/07, Richard Lynch wrote: > I think you still need locking in PHP Userland for concurrent access > to be meaningful to most developers... > > Otherwise you end up with a race condition in the session save handler. As only 1 process can hold the session at a time and the main process is constantly "letting go" by session_write_close(), other processes are able to open/read/close (to get the current status) or open/write/close (to tell the main process to abort). Without the session_write_close() in the main process, the secondary processes will wait either for the appropriate set_time_limit() or until the main process script ends. Which is correct. This is working very well for me now. It was the extra Set-Cookie headers which screwed things up for IE. By using ini_set('sessions.use_cookies', 0); immediately after the session_start() in the main process, the problem has been solved. The main process doesn't output any urls/forms/etc, so the session id is not appended to any urls. If the session cookie could be cached then that would be great, but I need someone else to look at the supplied patch (I'm not that good with PHP internals). Richard. -- ----- Richard Quadling Zend Certified Engineer : http://zend.com/zce.php?c=ZEND002498&r=213474731 "Standing on the shoulders of some very clever giants!"