1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44
|
#
# run this under mod_perl / Apache::Registry
#
use Embperl ;
my($r) = @_;
$Embperl::DebugDefault = 811005 ;
eval "use Apache2::compat" ;
$r -> status (200) ;
$r -> send_http_header () ;
print "<HTML><TITLE>Test for Embperl::Req::SetupSession</TITLE><BODY>\n" ;
my $session = Embperl::Req::SetupSession ($r) ;
$off = 0 ;
#$off-- if ($Embperl::SessionMgnt == 2 && !defined (tied (%$session) -> getid)) ;
@ks = grep (!/^_/, sort (keys %$session)) ; $num = keys (%$session) - $#ks - 1 + $off ;
foreach (@ks)
{
print "$_ = $session->{$_} <BR>\n" ;
}
$tst1 = '<P>Here is some text inside of Execute</P>' ;
Embperl::Execute ({input => \$tst1,
mtime => 1,
inputfile => 'Some text session test',
}) ;
print "</BODY></HTML>\n" ;
|