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.
In reply to Re: CGI Cookie Inconsistencies
by Your Mother
in thread CGI Cookie Inconsistencies
by ranqor
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |