选择语言 :

 Module_Session_Driver_Cache::destroy

Destroys the current session.

void Module_Session_Driver_Cache::destroy( )
返回值
  • void
File: ./modules/session/driver/cache.class.php
public function destroy()
{
    $sid = Core::cookie()->get($this->session_name);
    if ( $sid )
    {
        $this->driver()->delete($sid);
    }

    $_SESSION = array();

    Core::cookie()->delete($this->session_name,'/');
}