Pass the freshLogin parameter along to doSetLoggedIn when restoring a session, instead of hard-coding it to always be false.