public function destroy($removeCookie = false)
    {
        if ($this->id) {
            if ($removeCookie) {
                $this->removeCookie();
            }
            $this->handler->destroy($this->id);
            $this->handler->close();
            $this->id = '';
            $this->data = null;
            return true;
        }
        return false;
    }
public function destroy($removeCookie = false)
    {
        if ($this->id) {
            if ($removeCookie) {
                $this->removeCookie();
            }
            $this->handler->destroy($this->id);
            $this->handler->close();
            $this->id = '';
            $this->data = null;
            return true;
        }
        return false;
    }
public function destroy ( $ removeCookie = false ) { if ( $ this -> id ) { if ( $ removeCookie ) { $ this -> removeCookie ( ) ; } $ this -> handler -> destroy ( $ this -> id ) ; $ this -> handler -> close ( ) ; $ this -> id = '' ; $ this -> data = null ; return true ; } return false ; }
Stop the session and destroy its persisted data.

@param bool $removeCookie Remove the session cookie, too?

@return bool success
Stop the session and destroy its persisted data .