function sess_destroy_sid in Memcache API and Integration 5.2
Same name in this branch
- 5.2 session-memcache.inc \sess_destroy_sid()
- 5.2 session-memcache-db.inc \sess_destroy_sid()
- 5.2 session-memcache.db.inc \sess_destroy_sid()
Same name and namespace in other branches
- 5 memcache-session.inc \sess_destroy_sid()
- 6 memcache-session.inc \sess_destroy_sid()
Called by PHP session handling with the PHP session ID to end a user's session.
Parameters
string $sid: the session id
File
- ./
session-memcache.db.inc, line 163 - User session handling functions.
Code
function sess_destroy_sid($sid) {
dmemcache_delete($sid, 'session');
db_query("DELETE FROM {sessions} WHERE sid = '%s'", $sid);
}