A Perl script in /www/www/cgi-bin/test sets and reads a cookie between Perl printed pages, and after backbutton clicks.
But the cookie values seem to be lost if the backbutton returns the user to the html page used to submit form data to the Perl script.

function bC(n,v,e,p,d,s){
document.cookie=n+"="+v+"; path="+p+";";
}

called from

bC('tdn', '$tdn', '', '/', '', '');

sets the cookie in the Perl printed pages and

function gC(){
c=document.cookie;
si=c.indexOf(";");
s=c.substr(0,si-1);
e=s.indexOf("=");
n=s.substr(0,e);
v=s.substr(e+1,s.length);
document.f.tdn.value=v;
}

hopes to find and put one simple number value back into a form input.
I've tried many guesses besides '/'
as possible paths.
Thanks.