TJD has asked for the wisdom of the Perl Monks concerning the following question:
is causing my problem. The cookie data appears on the screen above the confirmation message after the application is submitted.print "Content-type: text/html\n\n";
And here's the "common.cgi" script:require "common.cgi"; write_cookie;
Perhaps most frustrating of all is the knowledge that at some point during trial and error testing, I affected the existing cookie record for the site, but I must have been asleep at the switch because I don't know which of the hundreds of attempts worked, nor have I been able to duplicate it. :-)#!/usr/bin/perl # sub write_cookie { $wc_namef = $INPT{'reg_custnamef'}; $wc_namemi = $INPT{'reg_custnamemi'}; $wc_namel = $INPT{'reg_custnamel'}; print "Set-Cookie: b_first=$wc_namef; path=/; expires=Wed, 30-Dec- +2020 00:00:00 GMT;"; print "Set-Cookie: b_mid=$wc_namemi; path=/; expires=Wed, 30-Dec-2 +020 00:00:00 GMT;"; print "Set-Cookie: b_last=$wc_namel; path=/; expires=Wed, 30-Dec-2 +020 00:00:00 GMT;"; } 1;
|
|---|