Questions tagged [cookies]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0 votes
0 answers
50 views

Trouble with Pardot Tracking & Consent API and WordPress/CookieYes

We are trying to get the Pardot tracking script to sync Account Engagement opt-in status to match our third-party consent manager without much luck. We are using the following for the website: CMS: ...
hmsproducts's user avatar
0 votes
0 answers
20 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 ...
Jack Odell's user avatar
0 votes
0 answers
35 views

Salesforce LWC form not loading in external site due to browser cookie

We have displayed a Salesforce LWC form in an external site, For a contact the LWC form is not loading when the same contact is trying to reload the site. It works in this way: If the contact is ...
Monica Venkatesan's user avatar
0 votes
0 answers
36 views

(Interaction Studio) What could be the reason why an anonimous user - even after logging in - is not merged into the existing user?

I am facing an issue with Personalization (former Interaction Studio): my website has a public area and a private one, that users can access after login; in both these 2 pages we have Personalization ...
lisim's user avatar
  • 1
2 votes
1 answer
398 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 ...
Oleg Berezhnoy's user avatar
0 votes
1 answer
607 views

Capture and track visitor using external form without form handler

We are moving away from using Pardot Form Handler because we've noticed that it has become unreliable on our website. We have a WordPress website that has Gravity Forms for user registration and we're ...
Khris's user avatar
  • 1
2 votes
1 answer
390 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(); ...
Arhael's user avatar
  • 45
0 votes
1 answer
224 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 ...
Jack Odell's user avatar
0 votes
2 answers
525 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-...
Abraham's user avatar
1 vote
0 answers
932 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 ...
Antonio De Palma's user avatar
0 votes
0 answers
1k views

Error ID: 0 - This page has an error. You might just need to refresh it. [NoErrorObjectAvailable] Script error

I'm trying to insert a script in Customer Community through Builder > Settings > Advanced > Edit Head Markup for a cookies popup at the opening of the community. I've inserted this at the top ...
Silvio's user avatar
  • 1
-2 votes
1 answer
1k 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 ...
Donald's user avatar
  • 385
0 votes
1 answer
283 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 ...
Noob_NoVoice's user avatar
  • 2,709
0 votes
1 answer
51 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 ...
shiv keerthi's user avatar
-1 votes
1 answer
209 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 ...
Shobhit Saxena's user avatar
1 vote
0 answers
798 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, ...
Trevor Gill's user avatar
0 votes
1 answer
247 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 ...
Almudena's user avatar
2 votes
1 answer
399 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 (...
isherwood's user avatar
  • 432
1 vote
0 answers
264 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 ...
sfandro's user avatar
  • 11
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 ...
cyberspy's user avatar
  • 200
1 vote
1 answer
2k views

End user cookie consent Management for Communities [closed]

As per the below link, since Salesforce does not currently provide out-of-the-box functionality for end-user cookie consent management in Lightning Communities, please suggest any third-party solution ...
Nagendra Ananda's user avatar
0 votes
0 answers
186 views

How to obtain the cookies of one PageReference in another

I have a VF page '/apex/CarView' with a table of cars with columns - Name, Model, Color etc. The page has a button 'Print Cars'. The user can sort the cars based on the columns. I have to persist the ...
ApexNoob's user avatar
3 votes
1 answer
548 views

LWC Button Icon Name is not displayed sometime during page load:

I have created below LWC Button with icon-name. <template> <div class="slds slds-p-around--medium"> <lightning-card class="slds-theme_shade wrapper&...
SFDCDJ's user avatar
  • 1,814
0 votes
1 answer
1k views

How to set BrowserId cookie in Salesforce Apex controller

I have created a custom domain site. We have found security Vulnerabilities in the cookies of Salesforce. Description: 1. BrowserId cookies does not have samesite attribute set. 2. force-proxy-stream -...
SFDC 44's user avatar
  • 664
0 votes
1 answer
1k views

With regards to Collect Tracking Code: What are the different cookies dropped for unknown visitors?

Referring to what was explained here How to track unidentified users in web and Mobile analytics on Collect Tracking Code and the cookies that are being dropped for unknown visitors. Indeed, I can see ...
Alexandre Vandermeulen's user avatar
1 vote
1 answer
477 views

SSJS: Does SetCookie / GetCookieValue only be execute after script has been executed?

I am trying to play around with cookies in SSJS and run into some problems. First of all, I have a few possible solutions for this problem but this question is more about getting an understanding of ...
shd.lux's user avatar
  • 466
2 votes
1 answer
6k views

Access cookies in LWC component

All, Is it possible to read cookies in an LWC component? (I think it is possible through Visualforce pages, but I need to do this in an LWC component) According to the documentation, I should get ...
Rahul Kumar's user avatar
3 votes
1 answer
942 views

vf pages broken in Chrome 80

With Chrome 80 coming in Feb 2020, we did some internal testing of our app and figured out that all embedded vf pages are failing to load (rather it shows home page window inside every vf page). We ...
Sahil's user avatar
  • 149
2 votes
1 answer
1k views

For an OAuth 2.0 process, do you need multiple connected apps for each instanceUrl?

I am building an integration from my platform whereby you can export data to your Salesforce instance, having authenticated via OAuth 2.0. I'm experiencing the below when attempting to get an access ...
darthmavis's user avatar
1 vote
2 answers
4k views

Set SameSite for Cookie in Apex

As exaplained in https://web.dev/samesite-cookies-explained/, Chrome will enable SameSite=lax by default if SameSite is not specified. In Apex, we can set Cookie using, Cookie ck = new Cookie('...
Ruchit goswami's user avatar
1 vote
0 answers
443 views

Cookie pop-up on a landing page redirected from email -> Cloud page [closed]

We are trying to setup a pop-up for cookie consent (1st, 2nd, 3rd, 4th) on landing page published in Cloud Page on which customers are redirected from a sent email?
Urke's user avatar
  • 19
1 vote
2 answers
5k views

How to use cookies in Salesforce lightning pages

I created new page from Salesforce community and I have set some component on that page so How i can set set cookies for that page how to access that value in another page?
kailash Chandra's user avatar
0 votes
0 answers
180 views

Set cookie with apex and read it with javascript

I need to set a cookie in an apex controller and then read it in a the helper of a lightning component.
Travis's user avatar
  • 342
1 vote
1 answer
402 views

Store the unknown customers information in SFMC DE who visit the landing page through Cookies

We have a requirement where need to store the information for unknown users who visit our SFMC landing page.Is it possible to identify the information through cookies or collect tracking code in SFMC ...
A Vashisth's user avatar
0 votes
1 answer
461 views

How can I add "set-cookie" to a RestResponse?

A few years ago, Salesforce disabled debug logs for REST guest calls. The only way to enable generating the logs is to add a cookie to the incoming call. Docs here. The incoming call in my case is ...
PatMcClellan__c's user avatar
3 votes
1 answer
1k views

Salesforce Community - Can we use cookies to only show a visitor a popup once?

I have a client with a Salesforce Community website who wants to have a pop-up on the homepage, but they only want it to pop up one time per user. This is before they login, so I'm thinking what I'd ...
melsherm3's user avatar
  • 111
1 vote
0 answers
2k views

Can APEX Capture Cookies in Callout HttpResponse?

I'm trying to post data from my org to a third party using a REST API they've provided for us. The process for this is: POST client_credentials (client_id and client_secret) to obtain access_token ...
D. Salvadori's user avatar
0 votes
1 answer
38 views

How can i set a cookie for a standardController? [duplicate]

I'm doing a test class and i need to set a cookie for my page (ApexPages.StandardController). I have to use something like: apexPages.currentPage().setCookies(); But, since i am simulating a page ...
Eros Mendonça's user avatar
0 votes
1 answer
3k views

Read document cookies in Lightning Component [duplicate]

I want to read the cookies out of the DOM document object. I tried the following: Controller: init : function(component, event, helper) { console.log(document.cookie); // returns nothing } ...
mg92's user avatar
  • 37
1 vote
1 answer
349 views

Cookie with custom expiration

We have Community with two-factor authentication in place, implemented in Login flow. We would like the second factor to be requested only once per 30 days on the device. If the user comes from ...
mascot's user avatar
  • 553
1 vote
0 answers
307 views

Cross Domain Cookies

I need help in one of my projects's requirement to set a cross domain cookies which later can be accessed by a server when we hit a URL from Salesforce's VF page. Please let me know if someone had ...
Dildar Hussain's user avatar
5 votes
1 answer
3k views

Cookie with HttpOnly flag

I work on Demandware platform, and use dw.web.Cookie class. there is no way to add HttpOnly attribute to the new Cookie. Do we have any solution or workaround?
Maksym Radchenko's user avatar
4 votes
2 answers
830 views

global scope where all components can access these values

I am writing an Lightning component where I am getting some values form Salesforce backend through Apex Controller. I need these values to be referred across all other components (components which ...
Avijit's user avatar
  • 760
3 votes
1 answer
2k views

Using the cookie class with lightning communities

I'm trying to get and set cookies in an AuraEnabled method in conjunction with my lightning community. Right now I'm going off of the cookie class documentation and just trying to get anything to work ...
Eric Strom's user avatar
1 vote
0 answers
2k views

Iframe with Windows Authentication in Internet Explorer

Having some real problems getting a Visualforce page to work with Internet Explorer 11. I have the following Visualforce Page: <apex:page controller="MyController"> <iframe frameborder=...
postapollo's user avatar
2 votes
1 answer
861 views

Setting a cookie in a canvas app?

I have a Java application that sets a cookie: Cookie keks = new Cookie("Demo","WeLoveCookies"); keks.setHttpOnly(true); keks.setSecure(true); keks.setPath("/"); response.addCookie(...
stwissel's user avatar
  • 369
1 vote
1 answer
2k views

Decryption is throwing System.SecurityException error in apex class

I'm creating community site and storing the password in cookies in the form of encryption. Now I've to decrypt that password. but decryption is not working. getting below error. System....
user29314's user avatar
  • 193
1 vote
2 answers
2k views

encrypt the Password in jQuery and decrypt in Apex class

I'm creating the custom login page for customer community. Login page has functionality like, Save Username Password, Remember me. When I check the Save Username Password while login, then at the ...
user29314's user avatar
  • 193
1 vote
2 answers
294 views

How to pass data securely between pages

We have a force.com site and we are displaying some products based on the user logged in. We are being passed in the user id from some portal. We are consuming this user id by creating a cookie and ...
Suneel's user avatar
  • 1,331
1 vote
1 answer
415 views

How to use current website cookie information in a new marketing cloud implementation

We are facing similar issue with several potential customers, when going through a Salesforce Marketing Cloud implementation project. My question is how can we use/copy/migrate current cookie ...
nizan's user avatar
  • 11