NYCPHP Meetup

NYPHP.org

[nycphp-talk] Caching, memcached and sessions

Rob Marscher rmarscher at beaffinitive.com
Sun Oct 7 15:56:06 EDT 2007


On Oct 4, 2007, at 9:53 PM, Cliff Hirsch wrote:
> So Mitch proposed memcached as a solution to caching a DB in a  
> distributed environment. For that matter, why not use memcached or  
> even an in-memory database engine for sessions?
The memcache extension automatically a memcache save handler for  
php's built-in sessions - set the ini session.save_handler
  param to "memcache".  I haven't tried it yet though.  Anyone used it?

> Remind me why I need to store my sessions in a disk-based file or  
> database? Sessions are meant to be temporary, not permanent.....
If you want to support a "remember me" session, you'll need to backup  
your active sessions from time to time in case of a server failure or  
reboot.  You'll also need to make sure you have enough memory to  
store all of the currently active sessions.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.nyphp.org/pipermail/talk/attachments/20071007/398a2ce5/attachment.html>


More information about the talk mailing list