Re: PHP 6.0 Wishlist
| From: | Jani Taskinen | Date: | Sun, 14 Aug 2005 01:37:38 +0000 |
| Subject: | Re: PHP 6.0 Wishlist | ||
| References: | 1 2 3 4 5 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-18020@lists.php.net to get a copy of this message | ||
On Sat, 13 Aug 2005, George Schlossnagle wrote:
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?Maybe this could be something that ext/session could provide. I sure can find some uses for a 'global session'.
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