We can find a salesforce session-id by going to the contact page inside of Salesforce and looking at the URL at the top of the page. Everything to the right of “salesforce.com/” is your ID number. It will be 15 digits.
In Apex you can find session id by using this: String MySessionID = UserInfo.getSessionID();