You can replace the Session object with CGI::State or Apache::Session (which does not require mod_perl or apache). Some coding is required. The smoothest transition is to Apache::ASP, but that requires mod_perl.
Comment on Re: $Session from cgi BinaryWrite from PerlScript