Adding migration of existing cookies to new sessions.

Oh this is a todo copied over from the other block of code.