You are here

function sess_destroy_uid in Memcache API and Integration 5.2

Same name in this branch
  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()
Same name and namespace in other branches
  1. 5 memcache-session.inc \sess_destroy_uid()
  2. 6 memcache-session.inc \sess_destroy_uid()

End a specific user's session

Parameters

string $uid: the user id

File

./session-memcache-db.inc, line 174
User session handling functions.

Code

function sess_destroy_uid($uid) {
  dmemcache_delete($uid, 'session');
  db_query('DELETE FROM {sessions} WHERE uid = %d', $uid);
}