Failed to write session data, php and memcached

If you are using memcache then save_path must have the tcp:// prefix.

If you are using memcached then the save_path should not have the tcp:// prefix.


The answer is Memcached objects can be maximum of 1MB (default)

if your array or object exceeds this limit, the object will be removed magically :)

All the items in your session will be removed, just saying this because right now at this moment I have experienced it my self

I solved it by starting the Memcached Session server like this

memcached -I 10m

Tags:

Php

Memcached