function sess_gc in Memcache API and Integration 5
Same name and namespace in other branches
- 5.2 session-memcache.inc \sess_gc()
- 5.2 session-memcache-db.inc \sess_gc()
- 5.2 session-memcache.db.inc \sess_gc()
- 6 memcache-session.inc \sess_gc()
File
- ./
memcache-session.inc, line 136 - User session handling functions.
Code
function sess_gc($lifetime) {
// Automatic with memcached.
// Be sure to adjust 'php_value session.gc_maxlifetime' to a large enough
// value. For example, if you want user sessions to stay in your database
// for three weeks before deleting them, you need to set gc_maxlifetime
// to '1814400'. At that value, only after a user doesn't log in after
// three weeks (1814400 seconds) will his/her session be removed.
return TRUE;
}