function _drupal_session_garbage_collection in Zircon Profile 8.0
Same name and namespace in other branches
- 8 modules/memcache/unstable/memcache-session.inc \_drupal_session_garbage_collection()
1 string reference to '_drupal_session_garbage_collection'
- drupal_session_initialize in modules/
memcache/ unstable/ memcache-session.inc - Initialize the session handler, starting a session if needed.
File
- modules/
memcache/ unstable/ memcache-session.inc, line 154
Code
function _drupal_session_garbage_collection($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;
}