Currently I use a javascript to embed a cookie in a SSI page:
print "Content-type: text/html\n\n";
print "<script language=\"javascript\">\n";
print " document.cookie = \"id=valid; path=/\"\n";
print "</script>\n";
The script outputs the cookie js to the SSI page and is called as:
<!--#exec cgi="/cgi-bin/script.cgi"-->
Question is, is there a better way to do this without javascript? But it has to be via the script.
Dan
print "Content-type: text/html\n\n";
print "<script language=\"javascript\">\n";
print " document.cookie = \"id=valid; path=/\"\n";
print "</script>\n";
The script outputs the cookie js to the SSI page and is called as:
<!--#exec cgi="/cgi-bin/script.cgi"-->
Question is, is there a better way to do this without javascript? But it has to be via the script.
Dan