Skip to main content
Parmanand Pathak (vyom) 님이 #Apex에 질문했습니다
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개
  1. 2020년 4월 16일 오후 6: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