in reply to How redirect the page in CGI programming?
Another comment, please remember that you can't print the header previously. In other words, this may give you problems:
print "Set-Cookie: $newcookie=$value; path=$path; expires=$time\n"; print $query->redirect('http://www.perlmonks.org/');
Here's a way around that problem:
print $query->redirect('http://www.perlmonks.org/', -cookie => $newcoo +kie);
Good luck.
|
|---|