Make sure we're storing the hostname and ssl flag in cookies.