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
4 votes
1 answer
2k views

Age verification in website

I am working on a website for a client that is requesting a way to verify your age. I have debated on creating a cookie that stores your age but I am unsure on a few things. How does SEO play into ...
DᴀʀᴛʜVᴀᴅᴇʀ's user avatar
3 votes
2 answers
6k views

Setting cookies only on the naked domain

As far as I know, one can set a cookie for example.com and not .example.com and then the cookie will only be visible on example.com and not sub.example.com. Is this true? I have set a cookie on a test ...
ustun's user avatar
  • 173
3 votes
1 answer
95 views

Redirecting to a default (or last visited) subdirectory. Does Google like this?

i have a site that has 3 web applications, lets use this example: example.com/nicy example.com/mash example.com/zoken The main application is nicy, so if the user comes for the first time (or if ...
Andres SK's user avatar
  • 281
3 votes
2 answers
612 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 ...
lucian's user avatar
  • 715
3 votes
1 answer
2k views

How does a metered paywall track its users?

A metered paywall is most seen on online newspapers. It allows users to view a specific number of articles before requiring paid subscription. In contrast to sites allowing access to select content ...
tysonsmiths's user avatar
3 votes
1 answer
475 views

SEO - Does Google properly handle hreflang tags with links that just change the language settings in a session cookie?

I am currently working on a website that is available in multiple languages. I put some effort in atomatically detecting the users preferred language. This itself is working great. I also offer ...
BrainStone's user avatar
3 votes
2 answers
540 views

Remember me or not?

I was told to post this on webmasters instead of stackoverflow. Is it safe to have the remember me feature? Would it be somewhat safe (knowing it won't be 100% safe) to allow users to close their ...
taeja87's user avatar
  • 133
3 votes
2 answers
327 views

How can I use cookie-free domains with Microsoft Azure portal?

My website installed in the Microsoft's Azure portal. My website using asp.net and framework(sitecore cms). It's C#. I checked my website using gtmetrix. It recommends using cookie-free domains. I ...
Success Man's user avatar
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
3 votes
2 answers
1k views

Google Tag Manager Uses iframe, is this problematic for IE?

Internet Explorer has a non-standard P3P privacy policy implementation (what a surprise). This prevents cookies from being loaded in iframes. Google Tag Manager uses an iframe. Does this cause ...
adam-asdf's user avatar
  • 2,077
3 votes
1 answer
139 views

GTM + GA4 init after consent - Data loss?

Question about something I am not sure about. But the way I set everything up for my ecommerce site is: When people will visit the page they will get a Cookie Consent Bar which you can accept or will ...
Dennis's user avatar
  • 31
3 votes
1 answer
64 views

Does Google analytics count as new users if users not revisit within 24hours on IOS14?

With regards to first party cookies, does Google analytics count as new users if the users not revisit on the website within 24 hours as a first party cookie is deleted within 24 hours?
Sho's user avatar
  • 31
3 votes
1 answer
170 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
3 votes
1 answer
287 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
3 votes
1 answer
626 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
3 votes
1 answer
126 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
3 votes
1 answer
617 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
3 votes
1 answer
207 views

How to handle pages that requires the use of session cookie?

I have a search page that uses session to track search criteria made by the user. A session cookie is created automatically when the page is launched. As bots do not use cookie, 1000s of sessions ...
Question Overflow's user avatar
3 votes
1 answer
9k views

Apache server not able to read cookies from Browser

I have developed a login authentication page using cookies (with spring security) where for the first time, the user will need to get itself authenticated. Once the user gets successfully ...
Bhuvan's user avatar
  • 143
3 votes
5 answers
398 views

Variable IPs: How variable are they? Best practices for tracking

There are a lot of questions on StackOverflow relating to session security / session hijacking, but there doesn't seem to be a really good solution to the problem. The three most common suggestions ...
AgentConundrum's user avatar
3 votes
2 answers
71 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
3 votes
0 answers
842 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
3 votes
2 answers
205 views

Cookie Audit help needed [closed]

Can anyone recommend any decent cookie audit plugins for firefox or chrome I can see the typical google cookies on the site but I am struggling to find out what a couple of the other cookies actually ...
nextyear's user avatar
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....
morgansbyers's user avatar
2 votes
4 answers
672 views

Can someone explain how FaceBook's cookie tracks you while logged out?

This article claims that Facebook tracks what you do, even when you're logged off of Facebook, via cookies. Now, a cookie is just a text file... that is read/written to while you're actually on that ...
Chad's user avatar
  • 185
2 votes
1 answer
444 views

Does adding LinkedIn button to a website result in cookies that track users?

We are planning to add the LinkedIn button in our website. But the restriction we are having is, the website should not use the cookies which collect the personal information. No impersonation. But I ...
Vani's user avatar
  • 123
2 votes
2 answers
78 views

How does this stackexchange form saved the work, I mean keep an auto save function, to retrieve loss of work

How does this stackexchange form saved the work, I mean keep an auto save function, to retrieve loss of work, in case the user's browser crashes.
user465641's user avatar
2 votes
1 answer
201 views

Domain cookie (_ga) from upper-level domain

I have deleted Google analytics account, Google site Kit plugin and Google .html verification file from the server about 30 min ago. Yet, I see a _ga cookie still being set. For example, we can take ...
Liepājas Liedaga vidusskola's user avatar
2 votes
1 answer
128 views

Cookie consent for promocode

We have an ecommerce site, and the promocode the user provides on the shopping bag is stored as a session cookie. Is this considered a strictly necessary cookie? If the user rejects non-essential ...
eduardo.bbs's user avatar
2 votes
2 answers
1k views

What is "fourth-party" in advertisement?

While I understand third-party cookies, I am not sure to understand what exactly "fourth-party" means in sentences such as: Third and fourth party ad tracking is allowed on [website] ...
Nicolas Raoul's user avatar
2 votes
1 answer
4k 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,257
2 votes
2 answers
471 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
67 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 ...
Daniel's user avatar
  • 163
2 votes
2 answers
287 views

Cookie manager PHP

I own a Joomla commerce store and although I use Google Analytics in order to track visitors, I need to install a cookie manager in order to be able to track cookies that were installed on customer ...
HaCos's user avatar
  • 119
2 votes
1 answer
303 views

Why does CNAME Cloaking enable cross domain tracking?

Recently, as browsers start blocking 3rd party cookies, a risky technique known as CNAME Cloaking emerged. It is said that this technique enables trackers, especially those in the online advertising ...
flow2k's user avatar
  • 123
2 votes
1 answer
62 views

Can I export my users' third party cookies such as those from Yandex to Google Ads?

I have been collecting cookies by different services like Yandex, Mautic, Facebook pixel etc. Now I need to share/import these Cookies to Google for make remarketing from my WEB by Google Ads. ...
Taha's user avatar
  • 21
2 votes
2 answers
196 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
2 votes
1 answer
449 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
2 votes
1 answer
167 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 ...
secef's user avatar
  • 21
2 votes
1 answer
4k 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 ...
lkraav's user avatar
  • 123
2 votes
1 answer
2k views

Transferring cookies between two sites (one is HTTPS)

A user comes (through a link) from a http:// site to another (having different domain) https:// site. We need to track that these two requests are done by the same user. But cookies do not pass over ...
porton's user avatar
  • 383
2 votes
2 answers
544 views

Can a website require search engine robots to support cookies?

Sometimes I pretend to be a search engine robot to get access to "subscriber only" web pages, or just to get a plain and simple view of a page that isn't cluttered with moving animations and other ...
Tyler Durden's user avatar
2 votes
1 answer
5k views

What does the Quantcast __qca cookie do?

I'm reviewing the cookies served up from my website and one of them is a first-party cookie __qca which seems to be set by Quantcast. I'm sure this is just used for tracking, but I can't find this ...
Loftx's user avatar
  • 461
2 votes
2 answers
155 views

Google AdSense reloading?

Please tell me something about Google AdSense: 1) Can i reload ads by myself without full-page-reloading? For example refresh AdSense frame or call some script? 2) About "interest-based advertising" ...
Edward83's user avatar
  • 161
2 votes
1 answer
881 views

Does Google AdSense require a privacy politcy and cookie notification popup?

I use to run ads from AdSense a few years ago on a website but because the website was not generating profit so much I stop running the ads. Now my AdSense account has to be activated again because it ...
user avatar
2 votes
1 answer
336 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
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
2 votes
1 answer
745 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
2 votes
1 answer
114 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
2 votes
3 answers
750 views

cookie not being sent when requesting JS

I host a webservice, and provide my members with a Javascript bookmarklet, which loads a JS sript from my server. However, clients must be logged in, in order to receive the JS script. This works for ...
Mala's user avatar
  • 289