You need to sign in to do that
Don't have an account?
Shyam Nair
document.cookie is not working on Chrome
Hello everyone,
We have a community build on Lightning Experience. Now when an admin tries to login to community through a contact, we are restricting certain functionalities on basis on RSID cookie value.
Now to get RSID cookie value we are using document.cookie property in lightning component. This is working in IE but in Chrome its showing as undefined.
This is happening due to the recent Locker Service changes Salesforce. And the above idea to check whether admin has logged in as a contact was given by developers from Salesforce itself.
Has anyone experienced the same issue and has a solution for the same? Please let me know.
Thank you.
We have a community build on Lightning Experience. Now when an admin tries to login to community through a contact, we are restricting certain functionalities on basis on RSID cookie value.
Now to get RSID cookie value we are using document.cookie property in lightning component. This is working in IE but in Chrome its showing as undefined.
This is happening due to the recent Locker Service changes Salesforce. And the above idea to check whether admin has logged in as a contact was given by developers from Salesforce itself.
Has anyone experienced the same issue and has a solution for the same? Please let me know.
Thank you.
For more, you can find the below-Known Issue acknowledged by Salesforce.
https://success.salesforce.com/issues_view?id=a1p3A0000001BrFQAU
Thanks !
Here you go with the same link.
http://salesforce.stackexchange.com/questions/128456/lockerservice-throws-error-when-saving-a-document-cookie
http://salesforce.stackexchange.com/questions/154415/locker-service-document-cookie-support
Thanks !