session restore as part of the embed code