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 another message logged! > >:-) > > > Do You have to call exit() at all? If You just finnish your code with > the redirection statement? I do so in my app where the redirection is > the last statement of execution.
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.e., at user authentication time, if the user is not successfully authenticated, from the Embperl base.pm's init method, I just call $epreq->{webclient}->redirect('login.html'), and that's it. Greetings, -- Gunnar Wolf - [EMAIL PROTECTED] - (+52-55)5623-0154 / 1451-2244 PGP key 1024D/8BB527AF 2001-10-23 Fingerprint: 0C79 D2D1 2C4E 9CE4 5973 F800 D80E F35A 8BB5 27AF --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]