Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:25401 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 5240 invoked by uid 1010); 22 Aug 2006 02:56:24 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 5225 invoked from network); 22 Aug 2006 02:56:23 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 22 Aug 2006 02:56:23 -0000 Authentication-Results: pb1.pair.com smtp.mail=penguin@php.net; spf=permerror; sender-id=unknown Authentication-Results: pb1.pair.com header.from=penguin@php.net; sender-id=unknown Received-SPF: error (pb1.pair.com: domain php.net from 85.235.23.12 cause and error) X-PHP-List-Original-Sender: penguin@php.net X-Host-Fingerprint: 85.235.23.12 kbhn-vbrg-sr0-vl207-012.perspektivbredband.net Linux 2.4/2.6 Received: from [85.235.23.12] ([85.235.23.12:57436] helo=mail.ter.dk) by pb1.pair.com (ecelerity 2.1.1.8 r(12602M)) with ESMTP id 7E/52-19892-5527AE44 for ; Mon, 21 Aug 2006 22:56:23 -0400 Received: from workpenguin (workpenguin [192.168.1.32]) by mail.ter.dk (Kaffemaskine) with SMTP id 0A7878A4258 for ; Tue, 22 Aug 2006 04:56:52 +0200 (CEST) To: internals@lists.php.net Date: Tue, 22 Aug 2006 04:56:00 +0200 Message-ID: <2hske21deqskguop9rb66gtrg7mf58t21a@4ax.com> References: <20060816123006.4028b334@pierre-u64> In-Reply-To: <20060816123006.4028b334@pierre-u64> X-Mailer: Forte Agent 1.91/32.564 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable Subject: session.gc_maxlifetime default value From: penguin@php.net (Peter Brodersen) On Wed, 16 Aug 2006 12:30:06 +0200, pierre.php@gmail.com (Pierre) wrote: >I would suggest to increase the default 8M to 12M. I discussed this >issue with Dmitry and he agrees on the principle. Any other opinions? >Or is it fine to increase it? Just out of curiousity regarding default values and slightly off-memory_limit-topic: session.gc_maxlifetime has a default value of 1440 (as of revision 1.2 of php.ini-dist where it was introduced). Obviously some value has to be the default value, but 1440 seconds seem as a peculiar value. 24 minutes is not a rounded value such as 1 day (86400 secounds) would be. I'm only guessing, but is it possible that this default value was added with the idea that the value was specified in minutes, not seconds (as 1440 minutes equals 1 day)? The current php.ini-dist mentions correctly that it equals 24 minutes (per 1.162). I would like this default value to be globally changed from 1440 to 86400. I think that the 24 minute "timeout" limit would and does confuse developers and users with spurious "suddently my session disappeared, but I didn't close my browser" issues. I believe that it is more easy and nice for a web developer to discard a session in a system with a high gc_maxlifetime than to keep a session alive (e.g. having the page access a php resource every couple of minutes using javascript). --=20 - Peter Brodersen