You are here

public function SessionProxy_Storage_Database::destroy in Session Proxy 7

Overrides SessionProxy_Storage_Interface::destroy

File

lib/SessionProxy/Storage/Database.php, line 72

Class

SessionProxy_Storage_Database

Code

public function destroy($sessionId) {

  // Delete session data.
  db_delete('sessions')
    ->condition('sid', $sessionId)
    ->execute();
  $_SESSION = array();
  $this
    ->setSessionUid(NULL);
  return TRUE;
}