public function destroy()
    {
        // Erase the id on the client side
        if ($this->cookieBag->has($this->getName())) {
            $this->cookieBag->remove($this->getName());
        }

        // Erase on the server side
        return session_destroy();
    }
public function destroy()
    {
        // Erase the id on the client side
        if ($this->cookieBag->has($this->getName())) {
            $this->cookieBag->remove($this->getName());
        }

        // Erase on the server side
        return session_destroy();
    }
public function destroy ( ) { // Erase the id on the client side if ( $ this -> cookieBag -> has ( $ this -> getName ( ) ) ) { $ this -> cookieBag -> remove ( $ this -> getName ( ) ) ; } // Erase on the server side return session_destroy ( ) ; }
Destroys the session

@return boolean
Destroys the session