As an additional comment:
I poked around in the source and exit appears to be using structures from 
mod_perl, I'm unable to run under mod_perl due to memory constraints.

     /* from mod_perl's perl_util.c */
     struct ufuncs umg;

-mp

At 10:01 AM 2/28/01, Marcus R. Popetz wrote:
>I originally responded to Neil saying that I was having buffering IO 
>problems when trying this method but I must be working too much...because 
>that was wrong.  I wasn't seeing any output from Embperl which led me to 
>believe that when I was exiting, the contents of http_headers_out were not 
>getting printed.  Something else must have been confusing the matter.
>
>When I went back and retried it this morning, here's what I'm actually seeing:
>
>My login testing occurs from within an .epl page that is invoked by 
>Execute from within another .epl file.
>
>main.epl
>         Execute( logintest.epl)
>         <code>
>         Execute(sidenav.epl)
>         <code>
>
>When I call exit(), the logintest.epl exits but main.epl and the rest of 
>it's children .epl files continue to function.
>Does that sound like an expected behavior?
>
>-mp
>
>At 06:22 PM 2/27/01, Neil Gunton wrote:
>> > What I'm trying to accomplish:
>> >
>> > Someone posts some data.
>> > I detect they are not logged in.
>> > I stop processing (because they might not have privs to do what they are
>> > posting)
>> > I redirect to a login page.
>>
>>What I do here is something like this:
>>
>>         $http_headers_out{'Location'} = "/login/";
>>         exit();
>>
>>HTH
>>
>>-Neil
>
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to