The ancient Greek doctor, Eryximachus, suggested 3 different ways, according to how severe they are. He says to first try holding your breath. If that does not work, try gargling with salt water. And if that fails, then try to make yourself sneeze with a feather or equivalent, which, he says, it the most effective.