Handle POST requests and match cookie existence