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];

#Cookie #SessionId

  • Facebook
  • Twitter

Site developed by Tejas Kapasi © 2021