Following up on this question: Prescribed way to set cookies (from plugin or Twig) the following works great.
craft()->userSession->saveCookie($cookieName, $data, $duration);
I can see Location being set as my cookie in the Application Log but when I try to use {{ craft.request.getCookie('location') }}
It returns blank.
What am I missing here?
Edit - Upon closer inspection it doesn't look like saveCookie is working correctly either. I see location from when I was using setFlash but I need the data to persist even if the page is reloaded.