RE: Re: Exit frustration

2007-01-19 Thread Richter, Gerald
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

Re: Exit frustration

2007-01-16 Thread Gunnar Wolf
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

Re: Exit frustration

2007-01-10 Thread Oskar Ahner
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

Re: Exit frustration

2007-01-10 Thread Gunnar Wolf
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

Re: Exit frustration

2007-01-10 Thread Oskar Ahner
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

Re: Exit frustration

2007-01-10 Thread Oskar Ahner
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

Re: Exit frustration

2006-12-13 Thread Gunnar Wolf
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

RE: Exit frustration

2006-12-12 Thread Gerald Richter
> > [$ 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

Re: Exit frustration

2006-12-12 Thread Gunnar Wolf
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

RE: Exit frustration

2006-12-10 Thread Gerald Richter
> > 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

Exit frustration

2006-12-06 Thread Gunnar Wolf
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