You are here

public function SessionProxy_Backend_Base::destroy in Session Proxy 7

Destroy session if any

Overrides SessionProxy_Backend_Interface::destroy

2 calls to SessionProxy_Backend_Base::destroy()
SessionProxy_Backend_Base::commit in lib/SessionProxy/Backend/Base.php
Called during shutdown hook time, this allows you to perform additional operations outside of the core PHP session handling at the end of request.
SessionProxy_Backend_Native::regenerate in lib/SessionProxy/Backend/Native.php
Regenerate the current session.
1 method overrides SessionProxy_Backend_Base::destroy()
SessionProxy_Backend_Default::destroy in lib/SessionProxy/Backend/Default.php
Destroy session if any

File

lib/SessionProxy/Backend/Base.php, line 180

Class

SessionProxy_Backend_Base

Code

public function destroy() {
  $this->started = FALSE;
  session_destroy();
  $this
    ->deleteCurrentSessionCookie();
}