Take the 2-minute tour ×
Drupal Answers is a question and answer site for Drupal developers and administrators. It's 100% free, no registration required.

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
add comment

2 Answers 2

Checked with the views php module.

enter image description here

Then i get the cookies stored.

enter image description here

share|improve this answer
add comment

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

$value = $_SESSION['something'];
share|improve this answer
    
SESSION is not an alternative for cookies in most situations. Can you print_r($_COOKIE) ? –  Ayesh K Aug 7 '12 at 12:56
add comment

Your Answer

 
discard

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.