On Oct 18, 12:22 am, moses wejuli <[email protected]> wrote:
> Thanks Dustin.
>
> I guess what i'm really askin is: would you recommend using memcached for
> session management in PHP.. the PHP extension for memcache has got a
> facility for manging sessions. This behaviour (using memcache for session
> mgmt) can be turned on in the PHP ini file.
>
> I know/believe C is your primary language of expression but if you are at
> all familiar with PHP, please let me know your thoughts. Sessions are pretty
> non-trivial in PHP. I would presume in case of a cache miss, PHP would look
> to the default session store: the filesystem!
>
There is no fall back to the file system for a cache miss, when using
MemCache extension.
It'll just start a new (empty) session, I believe.
The PHP configuration setting is reused for both files & memcache
session save handlers.
If files, its a directory to save sessions too, if memcache it's a
list of memcache addresses.
So using sessions becomes dependant on a memcache.
Therefore unusable for anything serious.
Jared