function sess_destroy_uid in Memcache API and Integration 6
Same name and namespace in other branches
- 5.2 session-memcache.inc \sess_destroy_uid()
- 5.2 session-memcache-db.inc \sess_destroy_uid()
- 5.2 session-memcache.db.inc \sess_destroy_uid()
- 5 memcache-session.inc \sess_destroy_uid()
End a specific user's session.
File
- ./
memcache-session.inc, line 233 - User session handling functions.
Code
function sess_destroy_uid($uid) {
$user = dmemcache_get($uid, 'users');
if (is_object($user) && isset($user->sid)) {
dmemcache_delete($user->sid, 'session');
}
dmemcache_delete($uid, 'users');
}