Ref: https://stackoverflow.com/questions/2617835/using-memcached-as-a-session-storage-with-codeigniter
Having PHP put the sessions into Memcache directly, rather than through framework code is easy - it's just changing two lines in the PHP.ini:
# see http://php.net/manual/en/memcache.ini.php
session.save_handler = memcache
session.save_path="tcp://127.0.0.1:11211?persistent=1&weight=1&timeout=1&retry_interval=15"
This uses the slightly older (but still entirely supported) 'memcache' extension from PECL.
No comments:
Post a Comment