More reliable way of setting the cookie back to what it was