Welcome to SFDC Share Point

Salesforce Blogs

How to Read Session Id from Cookie?

There is a simple trick to read session id from logged in instance of salesforce.

document.cookie.match(/(^|;\s*)sid=(.+?);/)[2];

SessionId from Cookie

#Cookie #SessionId