[NTLUG:Discuss] apache/ssi question
David Camm
bbai at onramp.net
Fri Mar 24 09:51:04 CST 2000
in fact, the apache book only references cookies as it relates to user
tracking.
i have written a very small program which sets a cookie in my browser.
when i then exec www.foo.com/cgi-bin/test-cgi.pl - which prints out the
contents of the environment,
there is an environment variable called HTTP_COOKIE which has the value
of the cookie i just set.
when i go to www.foo.com/test.shtml which does an exec
cgi=/cgi-bin/test-cgi.pl, HTTP_COOKIE does NOT
show up in the output.
what i'm trying to do is use a cookie for authentication, not tracking.
if i can get HTTP_COOKIE passed when executing an SSI exec, i;ve got it
licked!
MadHat wrote:
>
> OK, I only found one entry of the ENV{HTTP_COOKIE} mentioned in CGI.pm
> I personally use the CGI::Cookie module to handle the cookies I have
> used.
> Cookie information is normally passed in the Header part of the HTTPd
> requests, that may be the reason it isn't getting passed properly by the
> SSI.
>
> --
> %_=split';','2e;hac;40;not;64;ju;66; Perl ;68;st a;6f;ker;75;her';
> print map $_{unpack "H2",$_}, split //,
> 'madhat at unspecific.com'
> # aka Lee Heath, but don't tell anyone.
>
> _______________________________________________
> http://ntlug.org/mailman/listinfo/discuss
More information about the Discuss
mailing list