GC for anonymous

deepM - December 30, 2008 - 11:54
Project:GeoUser
Version:6.x-1.7-beta1
Component:Code
Category:feature request
Priority:normal
Assigned:Unassigned
Status:active
Description

Is it possible to use geocode module for anonymous users? I would like to use it for redirecting anonymous to some pages depending on IP info.

#1

zidong.c - January 3, 2009 - 15:19

#2

AntiNSA - January 14, 2009 - 07:40

subscribe

#3

frankcarey - February 2, 2009 - 23:32

should be able to store info with current table using uid of zero, and having an alternate lookup on the ip addr.

#4

andrewsuth - April 24, 2009 - 12:36

+1 for this feature being part of the module.

Correct me if I am wrong, but I don't know if frankcarey's suggestion would work if there is more than 1 anonymous user logged in.

Perhaps it would be better to store the information for anonymous users in a session cookie. Does anyone have any better ideas on how this could be implemented?

#5

frankcarey - April 29, 2009 - 17:14

a cookie might be good, logged in or not, but you should be able to store location info for the ipaddress itself since uid=0 wouldn't be unique. Cookies may be an issue on multi sites that share tables since the domains of each site may be different.

#6

smartkl - June 19, 2009 - 16:56

Rather than place another cookie couldn't you just store the geo info in the php session that is already created by drupal?

#7

staminna - October 12, 2009 - 15:07

Anyone managed to find a work-around or alternative?

 
 

Drupal is a registered trademark of Dries Buytaert.