MrForsythExeter has asked for the wisdom of the Perl Monks concerning the following question:
I have also tried printing the ENV but there is no cookie in there. I guess the simple question is can SSI calls to other CGI scripts access cookies. just incase you need to know the SSI call im doing is:sub getcookie{ use Crypt::RC4; my $passphrase = "*****************"; my $cookiename = uc(shift); if($cookiename eq ""){ return 0 } my $usercookie = $query->cookie($cookiename); my %hashreturn; if($usercookie eq ''){ return 0 } $usercookie = RC4( $passphrase, $usercookie ); if ($usercookie){ my @tempcookie = split(':',$usercookie); foreach my $cookieinfo (@tempcookie){ $cookieinfo =~ /^(.*?)=(.*)/; my $value1 = $1; my $value2 = $2; $hashreturn{$value1} = $value2; } } return (1,%hashreturn); }
<!--#include virtual="http://www.*************.co.uk/cgi-bin/MDCompone +ntdisplay.pl?do=clientadvert&t=457&e=457&jobid=61" -->
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: CGI:SSI cookies
by jdtoronto (Prior) on Jan 05, 2004 at 17:52 UTC | |
|
•Re: CGI:SSI cookies
by merlyn (Sage) on Jan 05, 2004 at 18:01 UTC | |
by MrForsythExeter (Novice) on Jan 06, 2004 at 11:20 UTC | |
by MrForsythExeter (Novice) on Jan 14, 2004 at 19:06 UTC | |
|
Re: CGI:SSI cookies
by inman (Curate) on Jan 05, 2004 at 17:50 UTC |