Forum Moderators: coopster & phranque

Message Too Old, No Replies

Need 4 lines of Perl Code

Can somebody write for me?

         

txbakers

2:08 pm on Jan 26, 2002 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Hi - I'm using a wonderful Perl online calendar and I have been duplicating all the files for each new customer.

I figured I could use the same base files and just create a new data file for each user if I could, in Perl,
capture an ASP session variable in an IF.THEN routine.

Could someone write that syntax for me? I haven't the time to learn Perl.....yet.

Here is what I have so far:

$cdata = $ENV{'HTTP_COOKIE'};
@cookies = split(/;/,$cdata);
foreach $i (@cookies) {
($name,$cid) = split(/=/,$i);
if ($name eq "schcodee"){
print "$name = $cid\n";
$thecode = $cid;}
}

require "e:/charms/cgi-bin/".$thecode."webcal.config.pl";

But this requires setting a cookie on the log-in page called "schcodee". I haven't been to successful with cookies, but since I'm using Session Variables I was hoping I could use those.

Thanks. If I'm not clear, please sticky me and I'll explain better.

sugarkane

4:06 pm on Jan 28, 2002 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



I'll happily be corrected, but aren't ASP session variables intrinsically tied to ASP? I'm not sure that they can be used from Perl - hopefully someone can give a definitive answer?