You are here

function sess_destroy_uid in Memcache API and Integration 6

Same name and namespace in other branches
  1. 5.2 session-memcache.inc \sess_destroy_uid()
  2. 5.2 session-memcache-db.inc \sess_destroy_uid()
  3. 5.2 session-memcache.db.inc \sess_destroy_uid()
  4. 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');
}