This stores the IDs in the session and our session is currently stored in a cookie. Cookies have a maximum size of 4kilobytes so I am able trigger a 502 error from nginx by manipulating more than about 60 mappings. I think we either need to store the session in the database or move these IDs to a querystring parameter. Would you be happy to try the latter?