Re: PHP 6.0 Wishlist

From: Date: Mon, 15 Aug 2005 06:29:40 +0000
Subject: Re: PHP 6.0 Wishlist
References: 1 2 3 4 5 6 7 8 9  Groups: php.internals 
Request: Send a blank email to internals+get-18090@lists.php.net to get a copy of this message
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?
<?php
    <the usual pre-session_start() things here..>
    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


« previous php.internals (#18090) next »