other HTTP requests arrive which referenc this same session-id. It sounds like the asynchronous HTTP requests which ask for the images are using a session-cookie that hasn't been established on the host yet ... or maybe, that do not yet have a session-id value to send. Use the browser's debuggers to
watch the round-trip ordering of the various HTTP exchanges. This is a fundamental HTTP-design issue which is not peculiar to Perl.