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
2answers
141 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
456 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 ...
3
votes
1answer
5k 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 ...
7
votes
1answer
85 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
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?
0
votes
2answers
2k 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
66 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
543 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
240 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 ...
2
votes
2answers
3k 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
310 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
2k 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,...
6
votes
2answers
1k 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
151 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
86 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
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 ...
3
votes
1answer
491 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
47 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
33 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 ...
3
votes
1answer
113 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
485 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
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 ...
1
vote
0answers
80 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
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. ...
1
vote
1answer
38 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 ...
2
votes
2answers
431 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 ...
2
votes
1answer
716 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
580 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 ...
46
votes
5answers
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 ...
2
votes
0answers
34 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
101 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 %{...
1
vote
3answers
167 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 ...
15
votes
1answer
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 ...
3
votes
1answer
504 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 ...
0
votes
1answer
130 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 ...
4
votes
3answers
350 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/...
2
votes
1answer
399 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 ...
5
votes
1answer
918 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 ...
1
vote
1answer
673 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 ...
2
votes
0answers
755 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 ...
1
vote
1answer
44 views

Most widespread cookies

What are the most widespread cookies among population? One example could be _ga cookie, but are there any others public cookies that almost everyone has in his/her browser? Why am I asking? I want to ...
0
votes
1answer
302 views

What percentage of users use a cookie blocker?

I would like to know whether there is a way to get numbers on those users enabling cookie blocker. As far as I know Google Analytics is tracking you by creating cookies. Is there a way to assess the ...
2
votes
1answer
152 views

How not to use Google Analytics cookies on Blogger?

I just noticed of a blog powered by Blogger which doesn't store any cookie, and therefore, doesn't need to show the annoying cookie popup. Checking Blogger options, I don't see anywhere where to get ...
3
votes
2answers
7k views

What is the percentage of users that block cookies in their web browser?

What is the percentage of web users that use either cookie blocking software for their web browsers or software that blocks Google Analytics tracking?
1
vote
1answer
758 views

UTM-alternative for adding parameters with exiting Analytics campaign terms

I'm using the excellent UTM-alernative by dm-guy here to create a cookie and inject the campaign source into a form. However, although that works extremely well for the form, the UTM replacement /?src=...
1
vote
1answer
4k views

How to read user unique code from _ga cookie?

Currently I am facing the problem that have been discussed already here: How to keep track of a unique and an existing visitor (keep track about unique user without registration etc.). The most ...
2
votes
1answer
3k views

How do you match a specific cookie value with Apache 2.4 <If> statement?

I am not able to figure out why the following doesn't match: <If %{HTTP_COOKIE} == 'XDEBUG_SESSION=leho'"> I'm setting a php_value inside the matching If. I know that part works because this ...
2
votes
1answer
66 views

Can I show a user an ad based on third-party cookies on their web browser?

Let's say I have a site that sells something. A user has no idea that my site exists, but they visit a competitor website which adds a cookie to their browser. Can I display advertising for my site ...
1
vote
1answer
56 views

Can I share a cookie with a subdomain?

Suppose I want my site to be accessible at https://www.example.com and https://example.com. Is it possible to set a cookie when visiting one domain so that it is accessible in the other?
5
votes
1answer
2k views

Website visitors with same PHP session ID, same cookies, but different IPs and user agents, all within one second. What are they and how to stop them?

We've noticed an unusual and growing pattern in visits to our website. When a user visits, we set a PHP session ID, set cookies, and record the user agent and ip. What we've seen happening a lot ...