public function destroySession()
    {
        if ($this->_is_session_initialized) {
            $_SESSION = array();
            if (isset($_COOKIE[$this->name])) {
                setcookie($this->name/*session_name()*/, '', time() - 42000, '/');
            }
            session_destroy();
            $this->_is_session_initialized = false;
        }
    }
public function destroySession()
    {
        if ($this->_is_session_initialized) {
            $_SESSION = array();
            if (isset($_COOKIE[$this->name])) {
                setcookie($this->name/*session_name()*/, '', time() - 42000, '/');
            }
            session_destroy();
            $this->_is_session_initialized = false;
        }
    }
public function destroySession ( ) { if ( $ this -> _is_session_initialized ) { $ _SESSION = array ( ) ; if ( isset ( $ _COOKIE [ $ this -> name ] ) ) { setcookie ( $ this -> name /*session_name()*/ , '' , time ( ) - 42000 , '/' ) ; } session_destroy ( ) ; $ this -> _is_session_initialized = false ; } }
Completely destroy existing session.
Completely destroy existing session .