dynamic routing and cookies