Skip to main content
I have written a code to attach multiple attachment from vf page using forcetk.

The code is working fine when I am running the VF page individually

but when I am attaching the VF page in Salesforce Site the file is not attaching and its giving INVALID_SESSION_ID.

Is there any way to get SessionID in Salesfore Site.

Can anyone help..??
4 respostas
  1. 16 de abr. de 2020, 18:05

    For my purposes, I was able to use "BrowserId" cookie - which appears to be unique for each time the browser session is started.

    let sessionId = /BrowserId=([^;]+)/i.test(document.cookie) ? RegExp.$1 : 'unknown';

0/9000