Questions tagged [cookies]
For questions related to the use of cookies as they specifically relate to Sitecore. This tag should not be used for general questions about cookies that are not specific to Sitecore. Typical cookie questions tend to be regarding Sitecore's session cookies and analytics cookies.
35
questions
0
votes
1
answer
312
views
Logout mechanism not fully effective
We are using Sitecore 9.3.
We have login and logout features in our site using Azure AD B2C.
During logout, we are performing below operations in that order -
AuthenticationManager.Logout()
We send ...
0
votes
1
answer
74
views
Control third party cookies from Sitecore
Is there a way to control the third party cookies added into my website from Sitecore?
I need to be able to block third party cookies (for example Google Analytics and LinkedIn cookies) until the user ...
0
votes
1
answer
541
views
Implement Cookie and consent management in Sitecore Headless App
I implemented the Cookie and consent management functionality (Manage a contact's tracking consent choices (sitecore.com)) in the Sitecore 10.1 + Sitecore NextJS (18.0.0) using the Sitecore.Analytics....
2
votes
4
answers
498
views
How to block/Disable Sitecore analytics for GDPR regions?
This code is only droping the cookies from the cookie board, the analytics is still on for the user. Is there any way to disable/enable xdb.enabled to false/true based on country region.
if (...
0
votes
1
answer
59
views
SC_ANALYTICS_GLOBAL_COOKIE cookie gets renewed when user closed the broswer
We are using Sitecore 10.2.2 version. We noticed that when user closes the browser and revisits the website in same browser SC_ANALYTICS_GLOBAL_COOKIE gets renewed. So Sitecore is unable to identify ...
1
vote
2
answers
3k
views
How to make the ASP.NET_SessionId cookies id as a secure
We are using Sitecore 8.2 and We are doing the pen test and reports showing ASP.NET_SessionId is not enabled as a secure.
I had tried the below things in web.config file but this is not working ...
2
votes
1
answer
83
views
Form's submit actions not working after disabling SC_ANALYTICS_GLOBAL_COOKIE cookie
I implemented code to block the SC_ANALYTICS_GLOBAL_COOKIE cookie if the consent has not been given (based on this blog post). But after doing that, I noticed, that none of the form's submit actions ...
2
votes
1
answer
152
views
Prevent Sitecore from creating the sitename#lang cookie in jss/nextjs app
Is there a way to block Sitecore from creating the {website}#lang cookie? When Sitecore's Layout Service is used with a headless app (a next js app)?
Will it be enough to add a processor in ...
5
votes
1
answer
110
views
Sitecore 10.2 creates session data "sc_ct_trk"
We recently migrated from Sitecore 9 to 10.2 and now we see a strange cookie in the session data named sc_ct_trk. I looked all up the internet and found no reference to what this is or how to disable ...
13
votes
2
answers
1k
views
How does xDB track individual visits?
With Sitecore 8.x, there is no longer a cookie associated with the individual visit (though of course the visitor cookie, SC_GLOBAL_ANALYTICS_COOKIE is still there). How does xDB track individual ...
1
vote
1
answer
352
views
How to add Cookies banner in Sitecore? [closed]
I would like to add cookies banner in Sitecore 9.1 version. I am using SXA 1.8. I have already added the Privacy warning in our site and would like to add cookies banner along with confirm , reject ...
2
votes
0
answers
91
views
Experience editor ribbon disappear
When I open a site in experience editor mode, I see the editor ribbon, but after I navigate on the site, the ribbon disappears.
Everything is fine in the local environment, but the error occurs in ...
0
votes
0
answers
123
views
sitecore language cookie overwrite in arabic version
I am using Sitecore 10 with JSS Angular app, I need to set site language cookie {{mysite}}#lang to be HttpOnly so I have created the HttpRequest pipeline processor.
public class CookieProcessor : ...
0
votes
0
answers
222
views
Add a cookie warning message to site
We plan to implement "the privacy warning displays on every page load until the visitor gives consent". Currently, we're using Sitecore 10.1. Our solution is in MVC.
Could you please share ...
0
votes
1
answer
592
views
Sitecore is setting same language cookie multiple times in response headers
Our multi-site Sitecore instance (7.0.- rev-130424) is setting same language cookie multiple times like below in response headers:
Set-Cookie: SiteName#lang=de-DE; path=/; secure; HttpOnly
Set-...
2
votes
1
answer
785
views
How to check if a cookie is sent by the browser or added in Sitecore pipelines?
If a cookie is added in any of the sitecore pipelines, it will already be in HttpContext.Current.Request.Cookies in the next pipeline.
I have to check if the browser sent any cookies, but because of ...
2
votes
1
answer
2k
views
How to Enable SSL Secure for sitecore shell cookies
I have added below code snippet (as in Andy Burns Blog https://andrewwburns.com/2016/10/21/secure-your-sitecore-cookies/ ) to secure the Sitecore cookies.
<System.Web> and <httpCookies> ...
0
votes
2
answers
1k
views
Prevent sitecore from creating the the sitename#lang cookie
Is there a way to block sitecore from creating the {website}#lang cookie?
https://doc.sitecore.com/developers/90/platform-administration-and-architecture/en/cookies-used-by-sitecore.html
4
votes
1
answer
912
views
How do I change the Sitecore Analytics cookie to be SameSite=None?
With the default security changes in browsers, third party cookies are getting blocked. Sitecore's SC_ANALYTICS_GLOBAL_COOKIE doesn't seem to have a SameSite property in it so it is being treated as ...
2
votes
0
answers
397
views
How to make sitename#lang cookie HttpOnly
Friends, I am facing one vulnerability issue saying sitename#lang cookie not being HttpOnly for my application. Can anyone suggest me that how and where can we change it. or any implications if I ...
-1
votes
1
answer
130
views
Store User IP address 0.0.0.0 until user not accept Site Cookie Policy in Sitecore 9.2
WE have enabled Cookie Policy popup in our Site.. If end user not accept the cookie policy then we have to store its IP address as 0.0.0.0 or blank in XDB... Once it accept then the actual IP address ...
1
vote
1
answer
1k
views
Change value of SC_ANALYTICS_GLOBAL_COOKIE to false
Can we override SC_ANALYTICS_GLOBAL_COOKIE through code? Meaning, in my configuration file I set to true, through code I want to set it to false for a particular user. Is it possible?
3
votes
2
answers
410
views
Tracking and identifying multiple users on the same session
Sitecore's documentation always talks about how the same person comes back to the site and is identified. How are multiple persons handled?
Say that a person first enters the site (anonymous tracking)...
1
vote
0
answers
529
views
Set Http and Secure flag for Sitecore Shell#Lang cookie [duplicate]
Is there a way in c# to set Http and Secure flag true for shell#lang cookie (in my case website#lang). As this cookie is Sitecore cookie.
Any help/pointer would be a great help.
Thanks
3
votes
1
answer
2k
views
Sitecore shared session state not working - session state works in each site, but not between sites
I have two sites that I'm trying to implement single sign on for by setting up shared session state. I have followed the steps here:
Configured the SQL server to support session state
Set the session ...
10
votes
4
answers
3k
views
Setting expiry date for Sitecore Language cookie
Sitecore does not seem to set the expiry date for the language cookie, Which means it will be stored per "session", meaning If user switch language on the site then closes the browser and open it ...
1
vote
1
answer
459
views
Navigation between sites using same lang cookie
I'm trying to navigate between sites but current language is not consistent between sites under the same tenant, how to unify lang cookie?
5
votes
2
answers
3k
views
Ways to block SC_ANALYTICS_GLOBAL_COOKIE from being deployed?
Because of EU legislation, sometimes you have to block tracking cookies from being deployed. In Sitecore's case this would mean the SC_ANALYTICS_GLOBAL_COOKIE, since it's not absolutely necessary for ...
0
votes
1
answer
901
views
Forms Authentication cookie with Sitecore
Does it require to explicitly set authentication cookie after authenticating user via Sitecore Authentication Manager?
if (Sitecore.Security.Authentication.AuthenticationManager.Login(
...
2
votes
0
answers
104
views
Maintaining/Sharing session between virtual folders
I am a bit confused here.
Under the same Sitecore 8.1 instance, I have two web sites set as two virtual folders (www.site.com and www.site.com/customers) under the same app pool.
This is a temporary ...
1
vote
0
answers
385
views
Sitecore 8 ADFS module no FedAuth cookie
I've added the Sitecore ADFS module to Sitecore 7.2 and it works.
Using the same module on Sitecore 8 doesn't work. I can see the MSISAuth cookies from sts. When it comes to reading the FedAuth ...
1
vote
1
answer
765
views
Browser Cookie Disabled, Sitecore behaviour
As we know, currently most sites depend on cookies being enabled in the browser, including Sitecore which handles personalization, tracking analytics etc.
What if cookies are disabled?
Do we really ...
6
votes
1
answer
724
views
Programmatically log visit when Analytics cookie is disabled
Due to EU cookie law, I have a site where we are disabling the Tracker via a pipeline processor ala: Disable xDB tracking for single requests
By interacting with the site, this will serve as consent ...
5
votes
1
answer
801
views
sitecore_userticket cookie generated differently across Sitecore versions
I am implementing a Single sign on solution for a client. It is required if a user is logged in for one of the two sitecore sites, he/she will be logged in for the other.
The first instance is 6.5.0 (...
6
votes
3
answers
1k
views
Rename SC_ANALYTICS_GLOBAL_COOKIE
Is there a way to rename the Sitecore cookie SC_ANALYTICS_GLOBAL_COOKIE? Wappalyzer identifies a Sitecore site via this cookie, and we would like to stop it from doing so, whilst retaining the ...