Here's my silly method: After I've had my last meal/snack for the day, I clean up the kitchen. Then I say loudly, "The kitchen is closed." After that I don't go back into the kitchen for the rest of the evening. It usually works pretty well. If I start feeling snacky, I just tell myself too bad because THE KITCHEN IS CLOSED!