me01273 has asked for the wisdom of the Perl Monks concerning the following question:
#!/usr/bin/perl ############################### # find the root if this is IIS: ############################### if($ENV{'SERVER_SOFTWARE'} =~ m/IIS/) { if($root eq "" && $ENV{'PATH_TRANSLATED'} ne "") { my $pt = $ENV{'PATH_TRANSLATED'}; my @pts = split(/\\/, $pt); $pts[-1] = ""; $root = join "/", @pts; $OS = "NT"; } } my $lp = $req->cookie("pmpre"); my ($clogin, $cID) = split(/\|/, pm_decode($lp)); my $cookie_pmpre_login = $req->cookie( -NAME => "username", -VALUE => "$clogin", -EXPIRES => "+1y", -PATH => "/" ); print $req->header(-COOKIE => $cookie_pmpre_login); exit;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: cookie encoding
by tempest (Sexton) on Apr 22, 2006 at 21:01 UTC | |
by jonadab (Parson) on Apr 23, 2006 at 11:29 UTC | |
|
Re: cookie encoding
by pingo (Hermit) on Apr 23, 2006 at 08:55 UTC | |
|
Re: cookie encoding
by Anonymous Monk on Apr 22, 2006 at 20:52 UTC | |
|
Re: cookie encoding
by jonadab (Parson) on Apr 23, 2006 at 12:03 UTC |