Get Session Id using Apex in Salesforce

String sessionId = UserInfo.getOrganizationId()+''+UserInfo.getSessionId().SubString(15);