Skip to content

Instantly share code, notes, and snippets.

@thruflo
Created August 23, 2010 09:42
Show Gist options
  • Select an option

  • Save thruflo/545147 to your computer and use it in GitHub Desktop.

Select an option

Save thruflo/545147 to your computer and use it in GitHub Desktop.

apache

  1. look for set_location request param: redirect (inc. passing request param through)
  2. look for greentv_location cookie: redirect
  3. look for geoip match: redirect adding set_location=en|sp|de request param
  4. add set_location=unknown

webapp

If get a set_location=en|sp|de then set greentv_location cookie.

If get set_location=unknown, display disambiguation (n.b.: don't implement this yet).

When setting cookie:

domain=*.green.tv expires=infinite

n.b.

I'll implement this on the existing Python webapp.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment