I made a quick test script:
#!/usr/local/bin/perlprint "Content-type: text/html\n\n";
if ($ENV{QUERY_STRING} eq "showthem")
{print "User - $ENV{REMOTE_USER}
<br />IP - $ENV{REMOTE_ADDR}";}
else
{$ENV{REMOTE_USER} = "My Name";
$ENV{REMOTE_ADDR} = "Text";
print "<a href=\"test.cgi?showthem\">Click Here</a>";}
exit(0);
but it didn't work. I'm trying to find an easy replacement for session cookies.