Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:18020 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 24304 invoked by uid 1010); 14 Aug 2005 01:37:45 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 24289 invoked from network); 14 Aug 2005 01:37:45 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 14 Aug 2005 01:37:45 -0000 X-Host-Fingerprint: 195.197.172.115 gw01.mail.saunalahti.fi Linux 2.4/2.6 Received: from ([195.197.172.115:41045] helo=gw01.mail.saunalahti.fi) by pb1.pair.com (ecelerity 2.0 beta r(6323M)) with SMTP id 24/46-33075-960AEF24 for ; Sat, 13 Aug 2005 21:37:45 -0400 Received: from nest.netphobia.fi (YZCLXVIII.dsl.saunalahti.fi [85.76.34.69]) by gw01.mail.saunalahti.fi (Postfix) with ESMTP id 51618F09CE; Sun, 14 Aug 2005 04:37:39 +0300 (EEST) Received: from nest.netphobia.fi (nest.netphobia.fi [127.0.0.1]) by nest.netphobia.fi (8.13.1/8.13.1) with ESMTP id j7E1bcLW029060; Sun, 14 Aug 2005 04:37:38 +0300 Received: from localhost (jani@localhost) by nest.netphobia.fi (8.13.1/8.13.1/Submit) with ESMTP id j7E1bc1B029057; Sun, 14 Aug 2005 04:37:38 +0300 X-Authentication-Warning: nest.netphobia.fi: jani owned process doing -bs Date: Sun, 14 Aug 2005 04:37:38 +0300 (EEST) Reply-To: Jani Taskinen To: George Schlossnagle cc: internals In-Reply-To: <71DDD152-EB26-4456-8541-7631BF985730@omniti.com> Message-ID: References: <42FCE0E4.604@lerdorf.com> <42FDB870.8040807@kmit.sk> <8A1E0BC8-0F6C-4B70-B53E-1AE02E500F05@omniti.com> <71DDD152-EB26-4456-8541-7631BF985730@omniti.com> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed Subject: Re: [PHP-DEV] PHP 6.0 Wishlist From: sniper@iki.fi (Jani Taskinen) On Sat, 13 Aug 2005, George Schlossnagle wrote: >> Maybe this could be something that ext/session could provide. >> I sure can find some uses for a 'global session'. > > That seems like a reasonable to go. I question it's utility a bit - how often > is this really useful? For large objects (like a real cache), this isn't the > best place to store it, for most resources it won't work at all. So what's a > typical use case for this? I wasn't even dreaming of using it for storing stuff like objects in it. As a real world example, I'd use something like that for "locking" stuff in the admin interface, e.g. when someone opens an item for editing, it's locked for all other moderators/administrators/etc... Of course I can accomplish that by a separate table in the database, but I'd like to avoid any unnecessary writes to DB whenever possible. :) Anyone have any other solutions to this (I'd guess quite common problem) I'm open for suggestions. :) Some other uses for a "global session" might be forums and their 'show online users' feature. --Jani