PhpRiot
News Archive
PhpRiot Newsletter
Your Email Address:

More information

BinarySludge.com: Redundant and Fault Tolerant PHP Session Storage

Note: This article was originally published at PHPDeveloper on 15 January 2011.
PHPDeveloper

New on BinarySludge.com today there's a tutorial looking at redundant and fault tolerant session storage via a few different technologies that can store session data with a custom session handler.

If a PHP application has deeply embedded usage of the $_SESSION superglobal, removing state is difficult. Instead removing the dependency between a user's session data and the single server it's stored on achieves the same fault tolerance.

They focus on a REST-ful approach to session handling, that it should be "kept entirely on the client" so there's no issue if something happens to the primary session data source. They point out that, while the technologies that can be used to replace it are similar, there's still some issues around using things like memsached, Sharedance, Hazelcast or MySQL to store session details.