Questions tagged [cookies]

The tag has no usage guidance.

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

Connected app blocked for non System admin users

We have two orgs - Org1, Org2 Our app resides in Org2. Users accessing it have account in Org1. So we have a community and connected app inside Org2. When people from Org1 open our app, they access ...
1
vote
1answer
57 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 ...
0
votes
0answers
22 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 ...
0
votes
0answers
33 views

Canceled or Disconnected error when calling a server-side method from Aura Component

I'm receiving 'Canceled or Disconnected' error message when trying to call a server-side method from Aura Component. I have a custom Aura Component with a few nested child components that loads in the ...
3
votes
1answer
84 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&...
0
votes
0answers
35 views

Salesforce community disable “functional” cookies

I am working on an implementation of salesforce community (of type visualforce page and custom tab). To comply with GDPR guidelines i need to build a cookie consent mechanism. Now salesforce community ...
0
votes
1answer
76 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 -...
0
votes
1answer
83 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 ...
0
votes
0answers
16 views

Send Cookies from IFrame to Iframe URL domain

Salesforce Community embed Third party website frame into Salesforce community using iFrame. Third party website wants cookies set by Salesforce community to check who logged in community and show ...
0
votes
1answer
61 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 ...
1
vote
1answer
507 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 ...
3
votes
1answer
497 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 ...
2
votes
1answer
232 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 ...
1
vote
2answers
2k 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('...
0
votes
0answers
81 views

Pardot iframe setcookie issue

I have a website in Wordress. On home page, there is onLoad function which opens a modal popup. The code for the modal popup is written in the page itself. This modal popup contains Pardot's form (...
1
vote
0answers
100 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?
0
votes
2answers
1k 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?
0
votes
0answers
67 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.
1
vote
1answer
150 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 ...
0
votes
1answer
118 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 ...
3
votes
1answer
522 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 ...
1
vote
0answers
441 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 ...
0
votes
1answer
34 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 ...
0
votes
1answer
2k 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 } ...
1
vote
1answer
127 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 ...
1
vote
0answers
126 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 ...
4
votes
1answer
821 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?
3
votes
2answers
420 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 ...
3
votes
1answer
1k 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 ...
1
vote
0answers
818 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=...
2
votes
1answer
419 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(...
1
vote
1answer
1k 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....
1
vote
2answers
810 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 ...
1
vote
2answers
79 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 ...
1
vote
1answer
210 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 ...
1
vote
1answer
142 views

Can .getCookies() somehow get a cookie from another computer on a network?

This is truly bizarre. I have a site page that uses parameters in the url to pass user, email and fullName values. The page's init() then grabs those values and assigns them to variables. If any of ...
0
votes
1answer
507 views

Ssalesforce site cookies list

My salesforce org uses cms force app to build html,vf pages etc and deploy them for sites being used by farm projects. Due to data protection act 1998 EU, my client has requested for types of ...
3
votes
1answer
192 views

Cookies not getting sent Salesforce1

I am working on integrating third party application with Salesforce. As part of integration to the third party, we have an anchor tag( tag) on visualforce page that makes a POST call. The way we do ...
5
votes
0answers
614 views

How to store/use Cookies in salesforce lightning

I am trying to use 3rd party application within my lightning component. I have to store the access token received from the external app. I am planning to store that in Cookies. But ApexPages....
1
vote
2answers
923 views

Render an External Page in an IFrame in a custom VF page

I want to render an External Web page in an IFRAME in custom VF page and retrieve cookies generated by that page in the salesforce. However, I have tried loading that in both apex:iframe as well as ...
1
vote
0answers
172 views

Prevent Apex setCookies prepend prefix 'apex_'

Hi guys as may already know salesforce changed Debug logs for Site Guest User in winter 17. And I ran into a problem, I can't set the cookies from current page controller (Apex Controller), I get the ...
4
votes
1answer
2k views

LockerService throws error when saving a document cookie

I'm getting an error when trying to save a document cookie in Lightning Component. The error I'm receiving is: Cannot set property cookie of [object Object] which has only a getter Can we not ...
2
votes
1answer
352 views

Cookies not stored user session until user logs out

Iam using custom object to store user information. When user logged in am storing username in cookies. So, user user logged into home page and access their information using cookie value. Once user ...
1
vote
1answer
75 views

Jquery Versions Breaking Each Other When loaded in Page. How to Fix Functionality?

I have a Visualforce page in which there are jQuery libraries included. I'm not familiar with why there are more than one library file loaded. I have a VF component included in the Visualforce page ...
4
votes
1answer
835 views

Sites cookies lost on page redirect

We have an intranet Sites application (no Site Login used). Recently, I was extending the application to use cookies across page redirects rather than URL parameters for shared information. To start, ...
1
vote
1answer
962 views

Setting cookies not taking effect in Safari

We have a managed package and are attempting to set a cookie using Apex code as follows: ApexPages.currentPage().setCookies(new Cookie[]{key}); The cookie seems to be set correctly in Opera, Firefox,...
3
votes
1answer
481 views

How can I access a non 'apex__' prefixed cookie?

I have a cookie that is being dropped by an external service into my web browser (for example named my_cookie), that I would like to access within Salesforce. However, according to the documentation ...
2
votes
1answer
308 views

Salesforce Cookies in Apex - How Many Characters Can I Use?

I am currently updating some client code where information is saved via Cookies (through JavaScript). However, I am trying to find an easier way to save all the information at once, as opposed to ...
6
votes
2answers
2k views

How to delete cookies in apex controller while clicking logout button on sites pages

I am using cookies to store user information on sites page using below logic.I am setting cookies when user logged in successfully on sites page Cookie oktauserpwd = new Cookie('userpwd',userpwd,null,...
3
votes
0answers
526 views

BrowserId cookie in customsite vfpage submit

I have a custom website with no user login, with form created in Visualforce page using vfpage compositions, after submit the page, it appears that sfdc creates a cookie called "BrowserId". How can I ...