Create and join session in c++

Your problem could be the one discussed here:

use Online::GetSessionInterface(GetWorld()) instead of IOnlineSubsystem::Get()->GetSessionInterface() it fixed it for me.