Order of events for restoring sessions