Re: EUCA: EU Cookie Alert
							
								
							
							
								Reply #17 – 
							
							
						
					
					
						Well .. I don't use the javascript from GEOIP ..
I make a normal http request (with the curl php routines) so I can use a Timeout and can detect if we have received code or not.
The flow is as follow:
after userdata is loaded ..
1. check if a guest or spider
    if is a spider, check if we known it
    a) no .. add to the spiderlist -> done
    b) in spiderlist -> done
2. is a normal guest
    check if we known the IP (all guest IP's and the geoip data cached)
    a) in cache ... done
    b) get data from GeoIp
3. Check the data if he inside the EU
    YES: he have ECL cookie set? => Yes done, No = Show the ECL overlay
    NO: request geoip, if in EU cache the IP and Geoip code, show ECL overlay
On this flow, it's also very simple to make a Landing page .. means, the site is shown in the user country language.
(We have currently only english and german, but I hope we get more)
That is, what we have done and use on our Site.
Feline