added cookie support to store user location