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.

Filter by
Sorted by
Tagged with
1 vote
2 answers
144 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 ...
Rameshkumar's user avatar
0 votes
1 answer
59 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 ...
NewbieHere's user avatar
2 votes
1 answer
58 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 ...
Linas's user avatar
  • 23
2 votes
1 answer
87 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 ...
Sebastian Tecsi's user avatar
0 votes
1 answer
51 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 ...
AME's user avatar
  • 669
0 votes
1 answer
259 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....
Amit Kumar's user avatar
2 votes
4 answers
185 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 (...
Ankit Pradhan's user avatar
4 votes
1 answer
97 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 ...
FvZ's user avatar
  • 41
1 vote
1 answer
168 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 ...
Nisha's user avatar
  • 391
2 votes
0 answers
69 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 ...
Krisztian Jofoldi's user avatar
0 votes
0 answers
99 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 : ...
shimaa elsayed's user avatar
0 votes
0 answers
160 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 ...
venkat's user avatar
  • 398
2 votes
1 answer
545 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 ...
Aron Toth's user avatar
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
Manoj Sreekumar's user avatar
4 votes
1 answer
806 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 ...
Jason St-Cyr's user avatar
  • 6,696
2 votes
0 answers
352 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 ...
ehsan's user avatar
  • 31
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?
tpkphani's user avatar
  • 339
-1 votes
1 answer
118 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 ...
Shailesh's user avatar
  • 717
1 vote
0 answers
524 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
user5191's user avatar
3 votes
2 answers
371 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)...
TheHvidsten's user avatar
0 votes
1 answer
533 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-...
Dheeraj Palagiri's user avatar
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 ...
Erica Stockwell-Alpert's user avatar
1 vote
1 answer
408 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?
Tareq Mansour's user avatar
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> ...
Iresh's user avatar
  • 71
0 votes
1 answer
843 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( ...
nari447's user avatar
  • 407
1 vote
1 answer
728 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 ...
Sivalingaamorthy's user avatar
2 votes
0 answers
102 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 ...
Cyrille Thilloy's user avatar
6 votes
1 answer
709 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 ...
Craig Taylor's user avatar
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 ...
Jarmo Jarvi's user avatar
1 vote
0 answers
376 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 ...
john pedra's user avatar
5 votes
1 answer
744 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 (...
Michael Saleeb's user avatar
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 ...
WhatIsHeDoing's user avatar
10 votes
4 answers
2k 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 ...
Ahmed Okour's user avatar
  • 2,124
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 ...
Dan Solovay's user avatar
  • 1,962