function drupal_session_destroy_uid in Zircon Profile 8
Same name and namespace in other branches
- 8.0 modules/memcache/unstable/memcache-session.inc \drupal_session_destroy_uid()
End a specific user's session.
File
- modules/
memcache/ unstable/ memcache-session.inc, line 299
Code
function drupal_session_destroy_uid($uid) {
$user = dmemcache_get($uid, 'users');
if (is_object($user) && isset($user->sid)) {
dmemcache_delete($user->sid, 'session');
}
dmemcache_delete($uid, 'users');
}