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

--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to