You are here

public function SessionProxy_Storage_Cache::destroy in Session Proxy 7

Overrides SessionProxy_Storage_Interface::destroy

File

lib/SessionProxy/Storage/Cache.php, line 94

Class

SessionProxy_Storage_Cache
Storage implementation based upon a specific cache backend.

Code

public function destroy($sessionId) {

  // Delete session data.
  $cid = $this
    ->getCid($sessionId);
  $this->cacheBackend
    ->clear($cid);
  $_SESSION = array();
  $this
    ->setSessionUid(NULL);
  return TRUE;
}