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
--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php