Gets user's current position and stores it in cookie.