Drupal Answers is a question and answer site for Drupal developers and administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have a view that will display nearby locations.

The center coordinates would come from a cookie (lat,lng).

I am trying to get the cookie with $_COOKIE, but I get an error saying that it is not set.

How would i access that cookie and return in for a proximity filter i Views (Using the Location module)?

share|improve this question

Checked with the views php module.

enter image description here

Then i get the cookies stored.

enter image description here

share|improve this answer

Try to check with the $_SESSION variable, e.g.

$value = $_SESSION['something'];
share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.