in reply to redirection failing when cookie is set
I had problems with Location redirection, and came up with this solution, note that it sends a single header:
my $c = $query->cookie( -name => 'somecookie', -expires => '+3h', -domain => "$ENV{HTTP_HOST}", ...blahblahblah... ); my $rediret_uri = "http://www.perlmonks.com"; #for example ;) print $query->redirect(-cookie => $c, -uri => $redirect_uri);
hope this helps
Update: changed variable $turi to $redirect_uri...that's what I get for copy and paste.
"Cogito cogito ergo cogito sum - I think that I think, therefore I think that I am." Ambrose Bierce
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: redirection failing when cookie is set
by bradcathey (Prior) on Oct 05, 2004 at 15:44 UTC | |
|
Re^2: redirection failing when cookie is set
by Anonymous Monk on Sep 09, 2004 at 13:17 UTC | |
by wfsp (Abbot) on Sep 09, 2004 at 14:13 UTC | |
|
Re^2: redirection failing when cookie is set
by Anonymous Monk on Sep 09, 2004 at 14:44 UTC | |
by kutsu (Priest) on Sep 09, 2004 at 15:02 UTC | |
by Anonymous Monk on Sep 09, 2004 at 15:09 UTC | |
by Anonymous Monk on Sep 09, 2004 at 16:46 UTC |