in reply to CGI Cookie Inconsistencies
You're overlooking an old standard. Most browsers/servers do the right thing and it might not be your issue but following the spec is better. URIs in redirects are supposed to be absolute-
use URI (); my $uri = URI->new( $cgi->url ); ( my $path = $uri->path ) =~ s![^/]+\z!!; $uri->path( $path || "/" ); $uri->query_form( a => undef ); print $cgi->redirect(-cookie => $sessionidCookie, -uri => $uri);
Untested but it looks right.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: CGI Cookie Inconsistencies
by ranqor (Initiate) on Nov 05, 2009 at 05:12 UTC | |
by Your Mother (Archbishop) on Nov 05, 2009 at 05:25 UTC | |
by ranqor (Initiate) on Nov 05, 2009 at 06:03 UTC | |
by ranqor (Initiate) on Nov 08, 2009 at 01:30 UTC | |
by Your Mother (Archbishop) on Nov 08, 2009 at 04:28 UTC | |
| |
by Anonymous Monk on Nov 08, 2009 at 10:42 UTC | |
|
Re^2: CGI Cookie Inconsistencies
by Anonymous Monk on Nov 05, 2009 at 08:17 UTC | |
by Your Mother (Archbishop) on Nov 05, 2009 at 17:10 UTC | |
by Anonymous Monk on Nov 08, 2009 at 10:42 UTC | |
by Your Mother (Archbishop) on Nov 08, 2009 at 21:28 UTC | |
by Anonymous Monk on Nov 08, 2009 at 23:47 UTC | |
by Anonymous Monk on Nov 05, 2009 at 08:20 UTC |