public function SessionProxy_Backend_Default::destroy in Session Proxy 7
Destroy session if any
Overrides SessionProxy_Backend_Base::destroy
1 call to SessionProxy_Backend_Default::destroy()
- SessionProxy_Backend_Default::regenerate in lib/
SessionProxy/ Backend/ Default.php - Regenerate the current session.
File
- lib/
SessionProxy/ Backend/ Default.php, line 119
Class
- SessionProxy_Backend_Default
- Default implementation relies on a custom storage engine.
Code
public function destroy() {
session_destroy();
// PHP 5.2 bug: When session_destroy() is called, you need to reset
// session handlers, else PHP loose them. See
// http://php.net/manual/en/function.session-set-save-handler.php#22194
$this
->sessionSetHandlers();
$this
->deleteCurrentSessionCookie();
}