LeGo has asked for the wisdom of the Perl Monks concerning the following question:
Here is the code that I am using. I am trying to set a cookie then move along to another page...
$c = new CGI::Cookie(-name => 'login', -value => $login2, -expires => '+3M', -domain => '$domain', ); print header(-cookie=>[$c]); print "URI:http://$URL/"; #and tried print "Location:http://$URL/";
This is the snippet from my .pl that does not work. Any suggestions would help. I can set the cookie by itself and that works. I want the page to refresh after doing so though and I haven't figured out how to do that. I feel like I have tried them all, and know I haven't. LeGo
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: CGI and Redirect/URI/Location
by btrott (Parson) on Jun 18, 2001 at 07:17 UTC | |
|
Re: CGI and Redirect/URI/Location
by Zaxo (Archbishop) on Jun 18, 2001 at 07:29 UTC | |
by LeGo (Chaplain) on Jun 19, 2001 at 02:28 UTC | |
by Zaxo (Archbishop) on Jun 19, 2001 at 04:37 UTC | |
|
Re: CGI and Redirect/URI/Location
by Hero Zzyzzx (Curate) on Jun 18, 2001 at 18:13 UTC | |
by LeGo (Chaplain) on Jun 19, 2001 at 01:58 UTC | |
by Hero Zzyzzx (Curate) on Jun 19, 2001 at 04:14 UTC |