in reply to Apache2::Cookie troubles... sanity check needed on auth/sess handling
Apache2::Cookie->new ( $r, -name => 'user_login', -value => { user_id => $ARGS{username}, MAC => $MAC }, -path => '/', -domain => 'ruth.dobson.net', -expires => '+1M', )->bake($r); $url= "/test.html"; $m->redirect($url);
Calling cookie->bake puts your cookie headers the response headers, but then you request a redirect, which is not a 200 response, and so the standard page headers do not get sent.
Instead of using bake, you need to set your err_headers_out, which will get sent regardless of the response code.
See here for a recipe : Sending Cookies in REDIRECT Response handlers
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Apache2::Cookie troubles... sanity check needed on auth/sess handling
by jimbus (Friar) on Apr 04, 2006 at 17:59 UTC | |
by perrin (Chancellor) on Apr 04, 2006 at 19:12 UTC |