You are here

public function SessionProxy_Backend_Default::destroyProxy in Session Proxy 7

Session destroy will require us to update the current logged in user.

File

lib/SessionProxy/Backend/Default.php, line 25

Class

SessionProxy_Backend_Default
Default implementation relies on a custom storage engine.

Code

public function destroyProxy($sessionId) {
  $this->storage
    ->destroy($sessionId);
  $this
    ->deleteCurrentSessionCookie();
  $this
    ->refreshAfterSessionChange();
}