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.

learn more… | top users | synonyms (1)

0
votes
1answer
14 views

Delete cookie just before render

I am trying to hide the fact that I have a Drupal site (as much as possible). The idea is that if a would be hacker (I am not talking about some ninja that could break into the pentagon) looks at ...
2
votes
1answer
36 views

Create cookie on login

What is the latest and best way to set a cookie upon login? What I mean is: if a user succesfully logins, then a session cookie user-is-logged-in = 1 is set. When the user logs out, this is removed. ...
1
vote
2answers
68 views

Setting secure cookies

In scanning a Drupal 7 site with Qualys, we're getting the issue 150122 Cookie Does Not Contain The "secure" Attribute Is there a way to systematically add the Secure vs HTTPOnly flag to ...
1
vote
1answer
78 views

The EU Cookie Compliance module doesn't display the message

I just downloaded the EU Cookie Compilance module 8.x-1.0-beta4 and the legal message doesn't show in my page. First, I configured the module, and then set the Display EU Cookie Compliance popup ...
0
votes
1answer
25 views

Generate a cookie when user closes a webform block

I have been tasked with having to setup a cookie that records when an anonymous user closes a newsletter signup webform block so that it no longer appears when reloading the current page or navigating ...
0
votes
1answer
40 views

How to filter content on a view page using cookies?

I'm developing a website where users access the content without registration but it still needs to have a favorites system for the elements on the web. Right now I have implemented a system where i ...
0
votes
1answer
35 views

why are users logged out after 2 days of not logging in

We got LDAP SSO working for our site. Employees go to the site everyday and everyday they do not have to input their credentials... until Monday. I believe this has to do with cookies maybe? I think ...
-5
votes
1answer
26 views

Show a popup on home page once a day [closed]

I need a mechanismo to send a pop-up window to my visitor in my home page. But only once a day. How I can do it?
0
votes
1answer
27 views

Same user for multiple sites

I am planning to use different server for multiple purpose. like Groups.eg.com Privatecontent.eg.com review.eg.com etc... I have up to 5 different subdomains and everything runs in different ...
0
votes
0answers
50 views

trouble with jQuery cookie in Drupal 7

I'm trying to write a PHP script that launches a colorbox window when a user attempts to leave the page. Using jQuery Cookie, it's supposed to launch just once per visit. However, with the cookie code ...
1
vote
1answer
33 views

Views: Suggest nodes based on user behaviour and history

I tried to search here and there to see if there's an easy solution for what I'm trying to do but to no avail! I want to show a list of nodes using views based on user's behavior specifically based ...
0
votes
0answers
19 views

Cookie not generated on shared host and login is impossible (works on localhost)

I just copied my site to shared host from localhost. In local environment the user login was working. However, in the shared host it won't work: access forbidden (Drupal notice). I started to look ...
1
vote
1answer
45 views

How to check if is anonymous user's first visit to site when using varnish

If one has a Drupal 7 site which uses varnish for caching, is there some method which would enable one to serve a different version of front-page if it is first time the anonymous user has visited the ...
0
votes
1answer
90 views

Drupal + Moodle SingleSignOn logout issues

Does anyone know how to set cookie_domain to use an IP-Address and not a domain name? I recently put together a SSO solution between Drupal and Moodle. Drupal is acting as the users repository with ...
0
votes
1answer
18 views

Making sure the cookie path does not include language code

I'm in the process of setting up a site to support 4 languages. One of the changes I made started to redirect /user to /[lang-code]/user, which in turn means Drupal's session cookie path now contains ...
3
votes
1answer
104 views

How to pass cookie value into Drupal View

We want to create some logic using JS that creates a cookie and set the node's taxonomy term id (preferred) or taxonomy term name as the cookie value. Then we want to use the cookie value to filter a ...
0
votes
0answers
19 views

Creating token to display cookie counter

I need some help with displaying the cookie counter to user. A friend told me i should use token_replace() instead of defining my own token. That'd be fast and easy but being new, It seems difficult ...
0
votes
1answer
40 views

Logins with port numbers not including ports on redirect/login

We recently upgraded our site to use Drupal 7. Previously we were using Drupal 6. In the testing phase, the Drupal 7 instance was available at ports 8000 and 8443 of the main domain, while Drupal 6 ...
0
votes
0answers
28 views

Show popup block-webform every X minutes & hide if submitted

One of our client would like to display a webform in a popup every X minutes for all the anonymous users on some pages. The popup come with a "No, thank you" button that could hide it. And of course ...
0
votes
1answer
47 views

Language cookie module not working in Safari?

I use language_cookie module to safe the users preferred language with a cookie. E.g. The default site language is English. But i am from Holland so i want always the Dutch version of the site: ...
1
vote
0answers
29 views

Language Cookie (language_cookie) not working in Safari [duplicate]

I use the Language Cookie module to safe the users preferred language with a cookie. E.g. the default site language is English. But I am from Holland so I want always the Dutch version of the site: ...
1
vote
0answers
216 views

Caching frontpage in cloudflare free?

I've set up cloudflare caching of Drupal's frontpage by adding a Page Rule for my Drupal base URL, with a "Cache Everyting" setting (otherwise, caching is enabled only for certain file extensions). ...
0
votes
0answers
24 views

Cookie configuration for cookie-less domain

I've my site on www.ildeposito.org. My $cookie_domain configuration is this: $cookie_domain = '.www.ildeposito.org'; On my server I've create a cookie-less domain on static.ildeposito.org (and I ...
1
vote
1answer
490 views

Unable to login to services due to session cookies not being passed in

This has been driving me nuts for days. I have an html5 app which logs the user into drupal via services 3.11 but I am unable to connect. Using the Chrome Postman plugin I can connect as expected. ...
1
vote
1answer
433 views

How can I modify the 'has_js' cookie?

I am trying to modify the 'has_js' cookie that is set by Drupal. I need to modify this cookie so it becomes both Http-only and secure in response to a site security review. I attempted to add the ...
0
votes
1answer
835 views

How to configure EU cookie compliance module for only Google Analytics

I have installed and configured the EU cookie compliance module, but it only displays the message when I log into admin section. I use Google Analytics and I must show the message for all the site. ...
1
vote
1answer
284 views

How can I use cookies on Webform?

I'm using Drupal 7 and Webform and I want, remember input texts on next submissions for registered users. How can I do it?
0
votes
1answer
263 views

Drupal refuses to read/check cookie for anonymous users

I currently have a module which creates a welcome overlay upon a user's first visit, This should work by utilizing a jquery created cookie and showing the overlay based on its existence. The jquery ...
4
votes
0answers
101 views

How can i have a SimpleNews signup form as modal/lightbox

Is it possible to have the Simplenews sign up form block as a modal - I'd like to present people to the signup a bit more visible than a static block. Would i be possible to present the modal when ...
0
votes
2answers
779 views

Services 3 Session authentication CSRF Validation with Persistent Log in

I am trying to use Services 7.x-3.11, the latest stable available to authenticate and access Drupal 7.34. Accessing from mobile devices with Native coding. I want to keep the user authenticated ...
0
votes
2answers
75 views

How to use cookies in Drupal? [duplicate]

I am writing a module that allows users to put comment on each paragraph. So in my module I have added a new field to comment table called "paragraph_id" and I have also added a new field to comment ...
2
votes
1answer
131 views

What is the best way to tell anonymous users apart?

My company wishes to split their website so that anonymous users are given slightly different sites based on a question when they first visit. I intend to use a cookie to store the answer to the ...
0
votes
0answers
1k views

Set Cookie in response header

I'm actually having a strange problem with one of my drupal installations. While I was trying to setup nginx for one of my sites, I ran into an issue that only the frontpage wont get cached. After a ...
0
votes
0answers
108 views

X-Drupal-Cache is missing from HTTP headers

X-Drupal-Cache seems to be missing from HTTP headers. The funny thing is that, when I cleared my cookies, it reappears twice: once with a "MISS" and then with a "HIT". After that, X-Drupal-Cache ...
0
votes
0answers
570 views

Sessions / Cookies not working for user login, registration or shopping cart

The Problem One of our sites has recently broken. Users can't login or register, and the shopping cart isn't working either. Drupal does not display any errors. Upon clicking the submit button for ...
0
votes
0answers
167 views

Why would error / warning / success messages stack up when using a Service?

I have a mobile app that uses Drupal as an API. As you navigate the site everything works as normal with appropriate messages on errors, warnings, and successful form submissions. After doing that a ...
1
vote
2answers
2k views

Anonymous User gets cookie

I recently saw that when I open of my sites as a anonymous user, a session cookie is set. I checked the database sessions table, and there is a line for uid 0 as well. How can I prevent drupal from ...
1
vote
1answer
107 views

bypassing cookies in varnish [closed]

As explained in https://www.varnish-cache.org/docs/3.0/tutorial/cookies.html I am trying to " Cookies from the client For a lot of web application it makes sense to completely disregard the cookies ...
3
votes
1answer
603 views

How do I implement cookieless subdomain?

Cookieless subdomains are considered beneficial for a number of purposes: They save some network overhead [1], and they are required for certain types of caching [7] (e.g. reverse proxy like ...
1
vote
0answers
419 views

Access Denied when logging in using Safari

When I login to example.com via Safari web browser, I get a message that says "Access Denied. You are not authorized to access this page." I can login properly when using Chrome, Firefox, and ...
0
votes
1answer
58 views

uid = 0 for all kinds of users

I want to get the uid of a logged in user in an external php script. I am using: chdir("C:/xampp/htdocs/mywebsite"); require_once './includes/bootstrap.inc'; drupal_bootstrap(DRUPAL_BOOTSTRAP_FULL); ...
0
votes
1answer
146 views

Can't get the authenticated user cookie session to be used when creating a new node via Services 3 endpoint

My application is sending this header to Service 3 endpoint when creating a new node: { 'Cookie': 'SESS255f42d9a87a0df5bf8959d25909fe8c=St8o29NI9Hx84kPo8NuZbpdHWuRgNSS9qy9cQ-QM4rA; expires=Sun, ...
0
votes
1answer
274 views

Show custom query page based on user logged in

I want to make a customized query page based on the user who is logged in. The query page is a node made in custom made content type "query"(this content type has no additional fields than which are ...
2
votes
1answer
204 views

Are there any acceptable uses for $_COOKIE['has_js'] outside of core?

Drupal 7 has a cookie called has_js. drupal.js sets this cookie, and it is used by the Batch API and the authorize.php script. There is a rather old issue about this cookie, backport ...
1
vote
0answers
52 views

What is the scope of the drupal session cookie?

I am bootstrapping drupal 7 (using DRUPAL_BOOTSTRAP_FULL) so that I can use drupal's authentication/security features in the rapid development of a web app I'm doing a proof of concept for. (And yes I ...
1
vote
1answer
193 views

google analytics are killed after “cookie control” instalation

I'm new in drupal so I will write as simple as possible. I have installed the "google analytics" (GA) module. I have configured it and it worked. I was able to see live statistics on the GA web-page. ...
0
votes
1answer
3k views

How do I access Session variables in Drupal that were set on non-drupal pages?

If I go print_r($_SESSION) on a drupal page (say mysite.com/ )I only get Session variables set from drupal pages (which are none atm). I can set new ones and they'll show up. Array ( ) However If ...
0
votes
1answer
714 views

Where does Drupal 7 clear my custom set cookies and how do I stop this? [closed]

I have parts of my website that are not controlled by drupal that set cookies. When I access a drupal-run page, my cookies get cleared. I tried to investigate which script does this by placing ...
1
vote
1answer
297 views

Caching pages with boost based on a cookie value

I have a Drupal website where a part of each page varies depending on the value of a certain cookie. In order to use Boost in this situation, I was thinking of rewriting the cookie value into a query ...
1
vote
0answers
113 views

How to remain logged in when switching languages via domain Drupal 7

I've got a site which will run in different languages. The language is determined based on the language domain, and the site will thus exists as example.com, example.de, example.fr, example.co.uk and ...