Using PECL/Memcached to store sessions

This post is the second part of my earlier article about installing and setting up the Memcached server and PECL/Memcached PHP client on CentOS 5.5.

Let’s assume you have PECL/Memcached up and running and want to use it as a session handler. I’ll talk below about why you’d want to do this (and why not) and how to get there.

Is storing sessions with Memcached a good idea?

As usual: it depends.
Regular file-based session storage is [...]

read on
Posted at 1pm on 06/09/11 | 3 comments | Filed Under: General

How to set up the Memcached PHP client library on CentOS 5

As we are currently building community features for our game download deal discovery site Deals4Downloads.com, I started investigating Memcached as a caching and session storage option. There are already many blog posts out there about this, but as many of them are unclear or even misleading, and I stumbled into every gotcha out there along the way, I thought I’d share some helpful tips here on how [...]

read on
Posted at 1pm on 06/09/11 | No Comments » | Filed Under: General