On Saturday, Aug 9, 2003, at 15:26 Europe/London, Nick Tonkin wrote:

On Sat, 9 Aug 2003, gerard uolaquetalestem wrote:

I have the next problem, i am in page A that <form> points to page B, that is
a modperl2 handler.
This handler makes a job and decides to send a cookie to the browser, and
after to redirect to the same page A who is ready to catch the cookie.


Yep. You need $r->err_headers_out->{'Location'} and you could change to $r->err_headers_out->{'Set-Cookie'} too.

Even that doesn't work. You need to do a Refresh, because that's the only way the browser will register the cookie - Set-Cookie + Location is not compatible (generally - some browsers will accept the cookie).


Matt.

Reply via email to