fixed cookie check in post GET method