Is memcached a good way to store session share ammong web servers?

Peter Bengtson peter at peterbengtson.com
Mon Nov 13 10:03:20 UTC 2006


You don't need to resort to other software. Simply set up a separate  
instance of memcache and configure it never to evict data using a  
simple command line option. Very simple to do, and very reliable. And  
it does not require any additional software.


On 13 nov 2006, at 10.59, Marcus Bointon wrote:

> On 13 Nov 2006, at 04:37, howard chen wrote:
>
>> why need to store the session on the database?
>> why not just use memcached as a shared drive for session?
>
> As has been said, because the session data can be evicted, kicking  
> out users from your system. A better, non-database system for  
> sessions is sharedance which is like memcache with disk storage:  
> http://sharedance.pureftpd.org/ especially in conjunction with the  
> recent addition of http://sourceforge.net/projects/phpdance
>
> Marcus
> -- 
> Marcus Bointon
> Synchromedia Limited: Creators of http://www.smartmessages.net/
> marcus at synchromedia.co.uk | http://www.synchromedia.co.uk/
>
>



More information about the memcached mailing list