File: reggetsess.htm

package info (click to toggle)
libhtml-embperl-perl 1.3.3-2
  • links: PTS
  • area: main
  • in suites: woody
  • size: 2,372 kB
  • ctags: 1,124
  • sloc: ansic: 8,207; perl: 4,196; makefile: 66
file content (42 lines) | stat: -rwxr-xr-x 790 bytes parent folder | download | duplicates (3)
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
#
# run this under mod_perl / Apache::Registry
#


use HTML::Embperl ;

my($r) = @_;

$HTML::Embperl::DebugDefault = 811005 ;


$r -> status (200) ;
$r -> send_http_header () ;

print "<HTML><TITLE>Test for HTML::Embperl::Req::SetupSession</TITLE><BODY>\n" ;


my $session = HTML::Embperl::Req::SetupSession ($r) ;

$off = 0 ; $off-- if ($HTML::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>' ;


HTML::Embperl::Execute ({input		=> \$tst1,
						 mtime      => 1,  
						 inputfile	=> 'Some text session test',
						 }) ;






print "</BODY></HTML>\n" ;