Thanks for replying.
I was able to figure out the error which was nothing to do with sessions. My system command was something like this:
when multiple users were tryng to run different batch files, the issue was with garbage.err file which was getting locked. I have solved the issue by using different names for these garbage.err files for different batch files.
I am planning refine this fix and use session id's for these file names.
But I am stuck with another issue now. If, from a single computer I try to run more than two different batch files by submitting the form more than two times, nothing happens at the third submit (No batch file runs). The browser just hangs, the IE progress bar does not display anything, untill any any one of the batch file's initiated earlier completes. If one of the batch files intitiated earlier takes a lot of time to complete the third submit just times out.
In summary, the perl-cgi script can have only 2 parallel runs, and I think this also means that the script will not support more than 2 users at a time.
Is there some kind of configuration setting in Apache server to let multiple instances of .pl script to run simultaneously?
The form submit code is as below:
<FORM METHOD="GET" action="http://server name/test_cgi.pl" TARGET="_blank">
I am also using the following piece of code at the beginning of the script to prevent the output of the batch run from being displayed on browser:
open(STDERR, "> E:\\Temp\\calcconsole\\output.err");
Any pointers will be appreciated.