How to get the current session with the OnlineSubSystem?

Have a look at Shooter Game. It caches all of those settings when creating a session.