Memcached PHP Sessions
jeremy at belent.com
Thu Feb 1 22:06:55 UTC 2007
Memcached should not be used for data that must be saved.
If losing a few/alot/all your sessions or getting so many sessions that
they keep getting pushed out of the cache is ok, then great. But if
not, memcached is probably not the solution.
Check the archives for the list, there has been alot of discussion about
the pros/cons of session handling with memcached.
Aaron Kalsnes wrote:
> Hi guys,
> I operate a website called TeenSpot.com and we are experiencing some
> major growing pains. We have utilized memcached all over the site,
> including storing sessions. I am not a developer by any means, but I
> am the one who does the server management. Our developers were not
> familiar with memcached before I told them. Like I said, we store our
> sessions in memcached, but for whatever technical reason, we still
> hit the database a lot (every page) to check that the user is still
> logged in (or something).
> Is there a better way to handle sessions, preferably where we
> wouldn't have to hit the database so much? Is "session caching"
> something that exists?
> Thanks guys,
> Aaron Kalsnes
More information about the memcached