Get SessionId using Developer Console in Salesfroce

string sessionValue = EncodingUtil.base64Encode(Blob.valueOf(userinfo.getSessionId()));
system.debug('>>>>>>>>>'+sessionValue);

Leave a Reply