in reply to
Re^2: CGI::Session keeps re-using same session ID
in thread CGI::Session keeps re-using same session ID
I did find out about CGI::Application, but I'm reluctant to use it for reason a
To stream from CGI::Application see the docs, search for "stream", it also links the practical example CGI::Application::Plugin::Stream. Basically, in your target runmode, print the headers immediately, signal CGI::Application not to print any headers when the runmode returns, and then just prints the content one chunk at a time, and return nothing.