, codeigniter, memcache, memcached . : https://github.com/pierskarsenbarg/codeigniter-session-memcached
, lib
memcache->set()
/
memcache->replace()
the third parameter was the expiration time, not the valid flag type.
i.e. MEMCACHE_COMPRESSED
Example
Original code:
$this->memcache->set('user_session_data' . $this->userdata['session_id'], $this->userdata, $this->sess_expiration);
Modified Code:
$this->memcache->set('user_session_data' . $this->userdata['session_id'], $this->userdata, MEMCACHE_COMPRESSED, $this->sess_expiration);
After changing the third parameter to the correct flag type, the error disappeared.
source
share