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.

Filter by
Sorted by
Tagged with
2 votes
0 answers
499 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 ...
Dylan Cristy's user avatar
1 vote
0 answers
34 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 ...
Peanuts's user avatar
  • 213
1 vote
0 answers
615 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, ...
John's user avatar
  • 186
11 votes
2 answers
12k 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, ...
Pekka's user avatar
  • 1,292
1 vote
1 answer
2k 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 ...
user avatar
6 votes
2 answers
2k 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, ...
jamieweb's user avatar
  • 185
3 votes
1 answer
156 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 ...
Jelle Kralt's user avatar
5 votes
1 answer
58 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 ...
pseudon's user avatar
  • 173
2 votes
1 answer
308 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 ...
Bob's user avatar
  • 121
1 vote
0 answers
238 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 (...
m4k3r's user avatar
  • 11
2 votes
2 answers
170 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'; ...
John's user avatar
  • 21
1 vote
1 answer
479 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 ...
Evgeniy's user avatar
  • 9,964
3 votes
1 answer
6k 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 ...
Photon's user avatar
  • 51
7 votes
1 answer
90 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 ...
Flash's user avatar
  • 101
2 votes
1 answer
3k 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?
Kirsty Simms's user avatar
  • 1,247
0 votes
2 answers
3k 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>
Poongkundran Soundarajan's user avatar
3 votes
2 answers
68 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 ...
INSERT_BRAIN_HERE's user avatar
4 votes
2 answers
560 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 ...
Archit's user avatar
  • 41
3 votes
1 answer
270 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 ...
Simon Hayter's user avatar
  • 32.8k
2 votes
2 answers
4k 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....
jehovahsays's user avatar
0 votes
1 answer
325 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-...
notnull's user avatar
  • 103
2 votes
2 answers
3k 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,...
Samar's user avatar
  • 21
6 votes
2 answers
2k 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 ...
Shushi's user avatar
  • 63
1 vote
2 answers
163 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 ...
Leroy's user avatar
  • 81
1 vote
1 answer
87 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 ...
user1180888's user avatar
1 vote
1 answer
3k 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 ...
behzad's user avatar
  • 141
3 votes
1 answer
595 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 ...
Jersey_Guy's user avatar
1 vote
2 answers
50 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 ...
tirenweb's user avatar
  • 503
0 votes
1 answer
35 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 ...
Pavan Kumar's user avatar
3 votes
1 answer
122 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 ...
Mike -- No longer here's user avatar
1 vote
0 answers
606 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 ...
Tony Cho's user avatar
1 vote
1 answer
1k 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 ...
Javacadabra's user avatar
1 vote
0 answers
86 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 ...
nkanderson's user avatar
1 vote
1 answer
27 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. ...
MB34's user avatar
  • 255
1 vote
1 answer
41 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 ...
Vasko's user avatar
  • 143
2 votes
2 answers
460 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 ...
Kit Johnson's user avatar
2 votes
1 answer
741 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/...
adam kaplan's user avatar
4 votes
1 answer
666 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 ...
Avail's user avatar
  • 376
47 votes
5 answers
24k 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 ...
Double Clicked's user avatar
2 votes
0 answers
35 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 ...
Ibrahim Alsanousi's user avatar
2 votes
1 answer
109 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 %{...
Mike -- No longer here's user avatar
1 vote
3 answers
207 views

Getting user language via Google cookies

Just thought, if that would be possible, I can get users native language, and display my webpage on their language, or on the closest one. So; Is it possible to get someone's language using his/her ...
mert yeniay's user avatar
15 votes
1 answer
1k views

Has the EU sued any site(s) yet for not complying with their cookie "law"?

EUROPA websites must follow the Commission's guidelines on privacy and data protection and inform users that cookies are not being used to gather information unnecessarily. - source Many people find ...
dhaupin's user avatar
  • 3,319
3 votes
1 answer
563 views

Cookie consent messages required on websites - how will adsense work?

I ended up watching this video: https://www.youtube.com/watch?v=H5xVSXTn41Y It states that publishers have until September 30th, 2015 to add a visible message indicating about the use of cookies on ...
Mike -- No longer here's user avatar
0 votes
1 answer
143 views

Remove Session ID from Canonical URL

I have two URL's http://www.domain.com/thread.php?1234-a-brand-new-thread/page2 http://www.domain.com/thread.php?1234-a-brand-new-thread/p=54762 'p' is equal to a post on the second page, so the two ...
user avatar
5 votes
3 answers
394 views

MediaWiki and EU cookie consent

I own a MediaWiki website that is showing Google AdSense. As of September 30th 2015 AdSense requires compliance with the EU cookie law. The Google Adsense Team is pointing to https://www.google.com/...
the's user avatar
  • 1,570
2 votes
1 answer
434 views

Is it possible to setup a cookie-less directory instead of a domain?

I'm familiar with how to setup a cookie-less domain, however, I have an situation where I can't setup a subdomain to store static elements. Can I set only my directories where assets are being stored ...
Chris's user avatar
  • 131
5 votes
1 answer
926 views

Who is affected by the EU cookie law?

Every source on the web keeps telling me what the cookie law is, but not whether I have to obey it or not. So I'm asking here: who must obey the cookie law? Is a website hosted by a server physically ...
user1807's user avatar
  • 153
1 vote
1 answer
746 views

Eliminating 'cookie' from 'vary:' without breaking website functionality

I read that some middle-man servers won't cache websites that have cookie set in the vary: header. For example, If my website issues a vary:accept-encoding,cookie as opposed to vary:accept-encoding ...
Mike -- No longer here's user avatar
3 votes
0 answers
827 views

google displays wrong language on multi language website because it takes cookies into consideration

I have a multiple language website that uses both subdomains and cookies to display the right language. Here is the logic on the website: de subdomain will display the German version fr subdomain ...
Cyril Gaillard's user avatar