Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:18090 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 12508 invoked by uid 1010); 15 Aug 2005 06:29:48 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 12493 invoked from network); 15 Aug 2005 06:29:48 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 15 Aug 2005 06:29:48 -0000 X-Host-Fingerprint: 195.197.172.116 gw02.mail.saunalahti.fi Linux 2.4/2.6 Received: from ([195.197.172.116:46290] helo=gw02.mail.saunalahti.fi) by pb1.pair.com (ecelerity 2.0 beta r(6323M)) with SMTP id D3/83-33075-B5630034 for ; Mon, 15 Aug 2005 02:29:47 -0400 Received: from nest.netphobia.fi (YZCLXVIII.dsl.saunalahti.fi [85.76.34.69]) by gw02.mail.saunalahti.fi (Postfix) with ESMTP id B5CF2D105A; Mon, 15 Aug 2005 09:29:40 +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 j7F6TfD2009274; Mon, 15 Aug 2005 09:29:41 +0300 Received: from localhost (jani@localhost) by nest.netphobia.fi (8.13.1/8.13.1/Submit) with ESMTP id j7F6Teip009271; Mon, 15 Aug 2005 09:29:40 +0300 X-Authentication-Warning: nest.netphobia.fi: jani owned process doing -bs Date: Mon, 15 Aug 2005 09:29:40 +0300 (EEST) Reply-To: Jani Taskinen To: George Schlossnagle cc: Ilia Alshanetsky , internals In-Reply-To: <436C3644-DC2C-455A-A725-4CB8006D5200@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> <42FEDAAC.3000609@prohost.org> <436C3644-DC2C-455A-A725-4CB8006D5200@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 Sun, 14 Aug 2005, George Schlossnagle wrote: > > On Aug 14, 2005, at 3:37 PM, Jani Taskinen wrote: > >> On Sun, 14 Aug 2005, Ilia Alshanetsky wrote: >> >> >>> If apc comes bundled then it includes apc_store() and apc_fetch() this >>> is pretty much $_MEMORY with a few tweaks. >>> >> >> Yes, but that is restricted to one server installations. >> I need such a 'global session' that is available with multiple >> front-end servers..ie. using DB as session storage. > > ext/session has the framework for doing this. I concur with your original > idea of augmenting it to provide those services. Perhaps a new autoglobal > $_GLOBAL_SESSION[]. Thoughts? session_set_application_id('someid'); session_start(); $_SESSION['foobar'] = 'foo'; $_GLOBAL['someid'] = 'bar'; etc. ?> Thanks to Marc for mentioning the application id. :) It should propably behave so that if the application id is not set, then we won't init the $_GLOBAL at all. --Jani