pocket-gophers-2014/sugarsnap — pull request #27 by dpschaaf (2014-05-24 23:37:44+00:00)
Title: Cookies

Cookie Controller - manages the cookies process, called in LocationUpdater
Cookie Setter - sets a new cookie with new geocoordinates, path, and expiration
Cookie Getter - gets available cookie information from the browser

This module is designed to set a new cookie if the user does not have a geolocation cookies
The cookie is simply a key sugarsnap##### (where the number is a random number generated to prevent cookies from overwriting each other) with a geocoordinate pair
These have individual expiration dates
The module will add a new cookie if the user has moved to an area where no cookie currently exists

TODO:
Implement a geocheck vs the coordinate pairs in the cookies so firebase will send pictures to users based on prior movements