Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [cookie]

An HTTP cookie is a piece of data stored by the user's web browser. Unless otherwise specified, cookies can be created, read, modified and deleted and modified both by JavaScript and from server-side scripts by reading the headers.

1
vote
2answers
19 views

Do service workers require consent under GDPR?

I notice that Chrome puts service workers, indexed databases and local/session storage under "cookies" in the site info dropdown. Are these things in any way considered ways to access personal ...
0
votes
0answers
5 views

Stackexchange not storing cookie consent - always showing banner [migrated]

I'm using macOS Firefox 64.0.2 with acceptance of all cookies on. Every time (or maybe it's every day) I see the "StackExchange uses cookies" banner. I assume this is might be due to some annoying ...
2
votes
0answers
44 views

ISP Config broke my PHP sessions and cookies [closed]

To explain my problem I have to add some context info: We have a website, it works with sessions and has been working for 7 years with no problems, except for our server administrator, he can not ...
1
vote
1answer
36 views

Google Bot Crawls using expired cookies and fails to get response

We are using a cookie on our website which is to fetch some information through an API. The cookie becomes invalid after a very small duration. Google Bot uses the same cookie again and again to ...
1
vote
1answer
62 views

Overwriting cookies in htaccess

I run a website in a quite cheap shared hosting environment (LAMP): technically speaking, in this context the only thing I can do is edit one or more htaccess files. Maybe for load balancing purposes,...
1
vote
2answers
228 views

Massive drop in Google impressions for last two months after cookie script was added for GDPR

I was checking Google Search Console and noticed that there is massive drop in Google impressions since July, not sure what could be the reason. I remember that I integrated a cookiebot.com script ...
1
vote
0answers
19 views

How do I prevent Google Analytics from sending cookies to cookie-less subdomains? [duplicate]

I'm trying to keep GA from setting cookies on static files like images. All the files concerned are loaded from cookie-free subdomains. Is there a way to exclude these subdomains from getting the ...
0
votes
1answer
18 views

Table that lists all local storage items used on site

According to the newest regulations and our law department each website our company owns/manages needs to have a page that lists all cookies and local storage items used on the site. I tried to find ...
3
votes
1answer
236 views

Do i need User consent for Google Analytics to be GDPR complaint

I am using GA on website as everyone out there does same. In order to be GDPR complaint i had used "https://cookie-script.com" script to for user consent for one of my website and i notice for last ...
2
votes
0answers
90 views

How to reset the Google Analytics cookies?

I asked this question over on StackOverflow, and someone suggested that I might have better luck here, so here it is: I am working on an app that will be running on a single touchscreen device in a ...
1
vote
0answers
25 views

How to create an opt-out link for each cookie we use on our site? [closed]

Under the new GDPR directives, we should provide ways to remove / block cookies that our sites send to the user's browsers upon user's request. How to do it? Is there some HTML/javascipt solution to ...
1
vote
0answers
218 views

Google Analytics cookies _ga and _gid still appearing in Chrome after installing a GDPR consent plugin in WordPress

Trying to get my Wordpress blog into GDPR compliance. I've got most of my cookies under control with a consent plugin (Cookie Notice) but I'm concerned about Google Analytics cookies _ga and _gid, ...
7
votes
1answer
2k views

Are session cookies exempt from consent under GDPR?

Session cookies - cookies that last only for the duration of the current session - are arguably not a tracking tool under the spirit of the EU's data protection efforts. Under old EU cookie rules, ...
1
vote
1answer
902 views

Does totally disabling cookies in my WordPress website malfunction Google Analytics?

I personally don't post any kind of external advertisements in any of my websites: Not Adsense, not anything. I just don't charge other organizations and companies to advertise in my websites and I ...
3
votes
2answers
156 views

Is it possible to block cookies that are set by externally hosted content?

Is it possible to block cookies that are set by externally hosted content embedded in a page? For example if I embed an image from a CDN, the response for this image may contain a Set-Cookie header, ...
3
votes
1answer
66 views

Should I copy Google Analytics cookies between domains, or use Google's prefered method?

I am in the process of investigating the way of moving from a current website to a new beta version, which lives on a different TLD. I am thinking about building a service that transfers a collection ...
5
votes
1answer
47 views

Visitors sending cookies that were never set by the host

Occasional visitors to my sites send one or more cookies that were never set by my hosts. Sometimes it's an obvious bot. Sometimes it's even an attempt to exploit. But occasionally it looks like a ...
2
votes
0answers
58 views

Prevent account sharing for paid membership online content

What's the best way to catch account sharers? I thought about: See how many people are currently logged in with it (cookies) See how many logins there were in the past 24 hours See how many ...
1
vote
0answers
101 views

Get cookies from a third-party site by sending login information using JavaScript

I have a website (ASP.NET) which also provides an API. But to access it, it requires login. I want to connect to this site with javascript, 'send' the user credentials to it and receive the cookies (...
2
votes
2answers
44 views

Is this document write of content fetched from another site cross site scripting or something different?

This was on a website I had to work on. It seems to me its a horrible idea, but I was hoping to get other input before I told them it was. var url = 'https://www.otherdomain.com/magic_php_file.php'; ...
1
vote
1answer
227 views

How do I set up a cookie-free subdomain when the website is on the naked domain (no “www”)?

The website (Wordpress) acts on http://example.com and sets cookies. Will http://static.example.com be cookie-free? Or http://static.example.com would be cookie-free only in case if the website acts ...
2
votes
1answer
2k views

Logged Out Too Soon; PHP Sessions Expire Too Quickly. Is this a Linux, CentOS, Cookies, CPanel problem?

Recently, I've been getting logged out sooner than expected on several websites that I manage on Linux servers. The problem started spontaneously a few months ago. At the time, I had not made any ...
6
votes
1answer
74 views

Is it required to list each cookie by name to comply with EU/UK Cookie Laws?

Some sites appear to list each cookie exhaustively, others (the majority) state only how they are used, and how a user may clear them. Do you need to list each cookie by name, together with what it ...
2
votes
1answer
965 views

What is the Google Analytics cookie expiration?

Do you know how long it takes for the Google Analytics cookie to time out before a user is recognized as new again? I believe it is 2 years. Is that right?
0
votes
2answers
800 views

Apache .htaccess: Is it possible to write an if condition for a cookie value check?

I want to write an if condition in an .htaccess file to check whether a cookie value is set. Example code: <If "%{HTTP_COOKIE} == 'cookiename and value'"> ... </If>
3
votes
2answers
61 views

Tracking users between sites using contact forms

I have two websites; A and B. I have hyperlinked linked these sites via advertisement banners and have contact forms on both. When people contact me through Website B's Contact Form I believe they are ...
4
votes
2answers
502 views

SEO Impact on presenting User details without login

I am looking to develop a functionality on our website in which i can a show user their name based on cookie data. There will be no login required. we will retrieve user's name based on the previous ...
3
votes
1answer
157 views

Fixed position age verify using cookies without user agent sniffing

I have built a simple age verification jQuery script for a particular brand of alcohol. It asks the user if they are of legal drinking age with a yes or no button. On yes the website stores a cookie ...
4
votes
2answers
892 views

How do I disable socket.io cookie named io server-side?

I needed to disable the socket.io cookie named io server-side. I follow the path to file creating the cookie to a file located at C:\socket.io\examples\chat\node_modules\socket.io\node_modules\engine....
0
votes
1answer
207 views

How to get rid of mixed content warning when using cookie-less domain for static content?

When I serve all website content from same domain (https://example.com), tools like pingdom keeps yelling: Serve static content from a cookieless domain When I serve static content from cookie-...
2
votes
2answers
733 views

Is it OK to have two “_ga” cookies in universal analytics, one for domain and one for subdomain

Our website has a number of sub-domains and we are in the process of migrating from classical analytics to universal analytics. When we migrated one of our domain from classical to universal analytics,...
4
votes
2answers
575 views

First time message/popup in site (by cookie), Googlebot and SEO

I have a site (based on dynamic content by JS) and I want to trigger a first time popup to users in order to make them register to the newsletter (it will be cookies based). Is there a way to do that ...
1
vote
2answers
113 views

Is localStorage more permanent than cookies for user identification in Google Analytics?

Looking at the Google Analytics user identification docs I found that localStorage could be used instead of cookies if a website was ran only on http or https strictly. I was looking in those docs ...
1
vote
1answer
74 views

Would cookies be of any benefit to my site(s)? Difference vs Google Analytics?

I'm managing 10 WordPress sites getting between 5-15k views a month. The company owner sees 'cookie' acceptance warnings on lots of sites he goes to and wants me to implement it across our sites (he ...
1
vote
1answer
1k views

Is a cookie prompt needed for European company websites used only internally?

I am developing a web application that is only being used internally in a company (inside EU), and it is only for the employees. Do I have to show a message to the users that my application is using ...
3
votes
1answer
240 views

Using mod_rewrite to access httpOnly cookie?

I have Apache running as a secure proxy (Port 443) between an HTTPS site and the rest of the world. This site is setting a secure, httpOnly cookie. The cookie when seen in a trace shows up in a ...
1
vote
2answers
37 views

Why are these Google cookies being downloaded?

After removing cookies in Chrome, visiting my site, and requesting chrome://settings/cookies, I get this (my site is the last entry): But since I have just removed Google Analytics script, I don't ...
0
votes
1answer
29 views

How to find the customer's visit is from the Google Results Page

As we are moving from the classic Google Analytics to the Universal Google Analytics for the marketing requirement, I need to find out from where the customer is coming from. If he is coming from the ...
4
votes
1answer
75 views

What does “Slightly longer” mean in EU cookie law?

Since my site serves worldwide users, I feel it must comply with EU laws, especially the cookie law. I have some things on my site that uses cookies to save user settings, but on the EU laws page at ...
1
vote
0answers
281 views

Is it able to disable secure attribute for Cookie on SSL connection?

There are HTTP and HTTPS page on our site on Apache. So We need to convert from HTTPS to HTTP or from HTTP to HTTPS to prevent from login session cookie fired. I already know that it does not make ...
1
vote
1answer
923 views

Using cookies on a site to redirect based on location - Googlebot crawling

I've recently began working on a Wordpress site that uses cookies to redirect a user to the appropriate regional page based on their location with geolocation. One thing I've noticed is that this ...
1
vote
0answers
58 views

Google analytics conversion tracking across subdomains

I've got a Drupal site at example.com, which leads to an ecommerce site at ticketing.example.com. Both sites have our GA code installed, and the cookiedomain for both sites is set to 'auto'. Based on ...
1
vote
1answer
24 views

Tracking users that are transferred to another site from ours?

Is it possible to track what a user does on another site after they are redirected there by your site? We run a site that sells education courses. Some of our courses are held by 3rd party companies. ...
1
vote
1answer
36 views

SEO analysis site is showing cookie and token information from within the HTTP header of my site

A SEO Analysis tool is showing cookie and token information publicly after fetching it from my website. Is having this information from whithin my site's HTTP header published publicly safe? If ...
3
votes
2answers
296 views

How do I keep track of UTM referrer during an account activation process?

I have an email campaign which has a tagged link to my website. It looks like this: http://example.com/join/?utm_medium=email&utm_source=search&utm_campaign=Outreach I want to know how many ...
3
votes
1answer
485 views

cookies and useragent is not enough ? to emulate browser?

I am building kinda a search engine for online shops, and several website are blocking me although I check the robots.txt Let's take an example, I need to get this page: http://www.aliexpress.com/...
4
votes
1answer
403 views

GA cookie data passed cross-domain from a form submission?

Hello fellow webmasters, So I have successfully set up cross domain tracking using tag manager and getting the unique clientId cookie data to be passed via URL parameter and seeing users convert in a ...
40
votes
4answers
20k views

Are cookie warnings still required under the EU cookie law?

Is it still required to provide a cookie warning offering users the ability to opt in/out of cookie tracking? I cannot find any official advice on what we are supposed to be doing. I'm not looking ...
2
votes
0answers
27 views

ASP.NET multilingual through cookie/URL - Google sees one version

Our website is multilingual and works through cookies/URL www.amlik.com/ar/ www.amlik.com/en/ The problem we are facing is Google sees only the arabic (default version of our site) even when ...
2
votes
1answer
85 views

A better method to save state between desktop and mobile site

This is something I want to fix for a long time. To begin, on my website I have a cookie named MDD and its set to 1 if the mobile detection has already happened. This is my code: RewriteCond %{...