Add better cookie management for the path values