Work around a cookie bug in some broswers.