gt; From: Gunnar Wolf [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, January 16, 2007 11:15 PM
> To: Oskar Ahner
> Cc: Richter, Gerald; embperl@perl.apache.org
> Subject: Re: Exit frustration
>
> Oskar Ahner dijo [Wed, Jan 10, 2007 at 08:02:56PM +0100]:
> > >Umh... I unde
Oskar Ahner dijo [Wed, Jan 10, 2007 at 08:02:56PM +0100]:
> >Umh... I understand that "clean" is very subjective, but it's cleaner
> >for me sometimes to exit this way. In this specific case, I'm calling
> >exit from my redirect method, in order to _avoid_ going through the
> >rest of the logic - i
Gunnar Wolf skrev:
Oskar Ahner dijo [Wed, Jan 10, 2007 at 06:52:34PM +0100]:
In your module, you should call Embperl::exit (301) instead of just exit,
because calling exit only, will terminate the whole Apache child, which is
not what you want.
Ok, changed to Embperl::Exit - Now
Oskar Ahner dijo [Wed, Jan 10, 2007 at 06:52:34PM +0100]:
> >>In your module, you should call Embperl::exit (301) instead of just exit,
> >>because calling exit only, will terminate the whole Apache child, which is
> >>not what you want.
> >>
> >
> >Ok, changed to Embperl::Exit - Now I get yet
Gunnar Wolf skrev:
Gerald Richter dijo [Wed, Dec 13, 2006 at 08:02:26AM +0100]:
In your module, you should call Embperl::exit (301) instead of just exit,
because calling exit only, will terminate the whole Apache child, which is
not what you want.
Ok, changed to Embperl::Exit - Now I g
Gerald Richter skrev:
[$ var $dummy $]
[- # Just clear the user session information to leave cleanly, inform
# the user he has logged out, and redirect to the login screen
delete $udat{login};
delete $udat{passwd};
$epreq->{warnings}->add_msg('Su sesión ha finalizado');
$epreq->{we
Gerald Richter dijo [Wed, Dec 13, 2006 at 08:02:26AM +0100]:
> In your module, you should call Embperl::exit (301) instead of just exit,
> because calling exit only, will terminate the whole Apache child, which is
> not what you want.
Ok, changed to Embperl::Exit - Now I get yet another message lo
>
> [$ var $dummy $]
> [- # Just clear the user session information to leave cleanly, inform
># the user he has logged out, and redirect to the login screen
>delete $udat{login};
>delete $udat{passwd};
>$epreq->{warnings}->add_msg('Su sesión ha finalizado');
>$epreq->{webclient
Gerald Richter dijo [Mon, Dec 11, 2006 at 05:25:58AM +0100]:
> Embperl::exit is the right thing to do, but normaly you should not see this
> message, because it's internaly catched by Embperl.
>
> From where do you call this code in your module?
Ok, seems I'll have to explain my probably twisted
>
> Tried also with Embperl::exit:
>
> [Wed Dec 06 19:47:32 2006] [error] [25086]ERR: 24: Error in
> Perl code: component at
> /home/gwolf/cvs/iiec_minisist/SmbGate/trunk/lib//SmbGate/Embpe
> rl/WebClient.pm line 48.\n
>
> So... What should I do? Where is my logic failing?
>
Embperl::exit
Hi,
I am frustrated trying to cleanly finish a request at the right time,
just after sending a redirect to the browser. I'm calling 'exit' not
from the Embperl templates themselves, but from a module I'm including
providing several utility functions. For completeness sake, here is
this particular
11 matches
Mail list logo