A class for PHP session handling in Mongo, MySQL and Memcache using the php built-in or a custom hook and storing flat data as JSON