I am running some simple test scripts on an IIS 5 machine with PerlScript,
and I have found two scenarios where I end up getting a blank page, even
though my own logging indicates that the ASP script is being run.
Actually, the appearance is blank, the actual page content is about 4
lines which looks like <!DOCTYPE HTML PUBLIC....>
Scenario 1)
The first ASP page hit for a new session.
Scenario 2)
Sometimes, the first ASP page hit for a new session works, but I have a
"Redirect" (because they arent 'logged in') and the page that it is
redirected to has the problem.
Within the PerlScript code, the symptom is that the $Session objects are
invalid. I.e. "defined $Session->SessionID" is false. You will get a
fatal error when trying to do something like
$Session->{'connected'} since Contents is undefined. So I actually test
(defined $Session->SessionID) at the top of each page.
Here is a sample script that demonstrates the problem: (look at email in
plaintext)
<%@ Language=PerlScript>
<html><body>
This is a page
<% $Session->Abandon(); %>
</body></html>
Load this ASP in your browser, and repeatedly hit F5. Every second time
you hit F5 you will get the blank page.
I finally managed to track down the cause of the problem, and it appears
to be a bug in IIS 5 or in ActivePerl. If I go to the application Config
in IIS manager and disable "ASP server-side script debugging" the problem
goes away.
Can anyone confirm if this happens to them?
Actually, I just tried with "Session.Abandon" in VBScript, and the problem
does not occur, so it looks like a bug in ActivePerl. I have build 630.
Denis
_______________________________________________
Perl-Win32-Web mailing list
[EMAIL PROTECTED]
http://listserv.ActiveState.com/mailman/listinfo/perl-win32-web