Fixed the hangs on IE after issuing cookies

Without these lines, the authenticate process cannot be completed on IE.