binary '=': no operator found which takes a right-hand operand of type 'IOnlineSessionPtr' (or there is no acceptable conversi

Can any one solve this error that shows in operator “=”
can anyone help me

GetSessionInterface() has a return type of IOnlineSessionPtr

Try

IOnlineSessionPtr sessionPtr = OnlineSubsystem->GetSessionInterface();

remember to include

#include "OnlineSubsystem.h" 
#include "Interfaces/OnlineSessionInterface.h"