Change location caching from cookies to the session