Questions tagged [cookies]
The cookies tag has no summary.
69 questions
0 votes
0 answers
361 views
Can an LWC access a cookie set in a different domain?
I have a customer who runs a support site via a Digital Experience. They are interested in setting a cookie in their website (www.example.com) and have it be available to a Lightning Web Component in ...
2 votes
1 answer
745 views
Use SessionId as Cookie to authenticate in browser automation tests
I want to streamline some browser automation scripts and bypass logging into the sandbox via the standard login page (with login and password). Additionally, our automation scripts authenticate in the ...
2 votes
1 answer
716 views
Lightning Web Component cookies expire in one day
I am using a cookie in LWC to store some user settings. This is create cookie method: createCookie(name, value, days) { var expires; if (days) { const date = new Date(); ...
0 votes
1 answer
357 views
Does userConsentCookie component control Google Analytics tracking on an Experience Site?
We use an Experience Site. We added our Google Analytics Id to it via Site Builder & the site now records page views on GA on its own (we didn't have to write any code to control it). If we ...
0 votes
2 answers
1k views
Salesforce Lightning Locker Not allowing me to get Cookies
I am trying to develop the functionality of cookie settings and Accept Cookies for my Community Users. As per the below new Salesforce functionality https://developer.salesforce.com/docs/component-...
2 votes
0 answers
2k views
Cookie management for Salesforce Experience Sites
See https://help.salesforce.com/s/articleView?id=sf.networks_cookies.htm&type=5. Salesforce says it doesn’t currently provide functionality for end-user cookie consent management in Experience ...
-2 votes
1 answer
3k views
How to read a cookie set by the Lightning Web Component
I am trying to create a cookie with a value that I get from the server to be used in subsequent calls. I have an Lwc component where I am trying to do it. below is the code that I am using to create ...
0 votes
1 answer
575 views
How to pass cookie/storage details from other website to the salesforce [closed]
I am trying to pass some details from a non-salesforce website to salesforce website while creating the case. Use Case : I am in a product website and if I have any question then I will click the help ...
0 votes
1 answer
71 views
Access cookie set in one managed package VF page in another VF page from extension package
I have a base package A which has a VF page abc.vf an extension package B which has a VF page xyz.vf I'm setting a cookie in xyz.vf but it is not accessible by abc.vf in base package A because these ...
-1 votes
1 answer
292 views
Redirect to a VF Page hosted on Force.com site with Cookie Data
I have a requirement to pass information to a visualforce page hosted on a Force.com Site in a secured manner, and not using query string. I had used cookies for this purpose. However, on the host ...
1 vote
0 answers
971 views
LWC - Apply a class to a div based on the state a specific user left it in
I have a LWC with a button ("Toggle Sales Coaching) that when selected toggles the slds-is-expanded class off and toggles the slds-is-collapsed class on. I would like for the component to know, ...
0 votes
1 answer
356 views
Integration between Cookiebot and SalesForceMarketingCloud
In my client we try to connect Marketing Cloud with Cookiebot. Cookiebot is a site that collects and stores cookies for each landing page. For this to be possible, we must create an index of all our ...
2 votes
1 answer
554 views
Why isn't a cookie value being returned in an Apex class constructor?
I'm refactoring an embedded Visualforce page for a Lightning upgrade project. Previously an error message was passed via a URL parameter, but that no longer works due to an additional redirect (...
1 vote
0 answers
327 views
Salesforce Canvas App Issue with Chrome Latest Versions and Recent Cookie SameSite Policy
We created a Canvas App implementation in Salesforce that is able to render an external .NET / C# web app within the CRM by means of an aura component. It works perfectly fine in any browser, except ...
3 votes
1 answer
3k views
Cookie error with embedded VisualForce page in Chrome
I'm trying to embed some VisualForce pages in the layout for a Custom object. This works fine in Firefox, but not in Chrome. Instead, for each embedded page (there are three) I get the message: Your ...