public function destroy()
    {
        if ($this->_hasSession() && !$this->started()) {
            $this->start();
        }

        if (!$this->_isCLI && session_status() === \PHP_SESSION_ACTIVE) {
            session_destroy();
        }

        $_SESSION = [];
        $this->_started = false;
    }
public function destroy()
    {
        if ($this->_hasSession() && !$this->started()) {
            $this->start();
        }

        if (!$this->_isCLI && session_status() === \PHP_SESSION_ACTIVE) {
            session_destroy();
        }

        $_SESSION = [];
        $this->_started = false;
    }
public function destroy ( ) { if ( $ this -> _hasSession ( ) && ! $ this -> started ( ) ) { $ this -> start ( ) ; } if ( ! $ this -> _isCLI && session_status ( ) === \ PHP_SESSION_ACTIVE ) { session_destroy ( ) ; } $ _SESSION = [ ] ; $ this -> _started = false ; }
Helper method to destroy invalid sessions.

@return void
Helper method to destroy invalid sessions .