I've had them a few times. A Jamaican friend told me to rub the area with wet sand (usually while I'm in the water) then make sure to wash your bathing suits in hot water and hang to dry. This has always worked for me.

Oh, have a hot shower yourself if you can.