handle reseting a cookie value and deleting a cookie