synchronous cookie save before reload.