line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package Apache::AxKit::Plugin::AddXSLParams::BasicSession; |
2
|
|
|
|
|
|
|
# $Id: BasicSession.pm,v 1.5 2004/09/17 02:05:22 kjetil Exp $ |
3
|
|
|
|
|
|
|
|
4
|
1
|
|
|
1
|
|
926
|
use strict; |
|
1
|
|
|
|
|
1
|
|
|
1
|
|
|
|
|
40
|
|
5
|
1
|
|
|
1
|
|
87019
|
use Apache::Constants; |
|
0
|
|
|
|
|
|
|
|
0
|
|
|
|
|
|
|
6
|
|
|
|
|
|
|
use Apache::Cookie; |
7
|
|
|
|
|
|
|
use Apache::Request; |
8
|
|
|
|
|
|
|
use Apache::URI; |
9
|
|
|
|
|
|
|
use vars qw($VERSION); |
10
|
|
|
|
|
|
|
$VERSION = '0.20'; |
11
|
|
|
|
|
|
|
|
12
|
|
|
|
|
|
|
|
13
|
|
|
|
|
|
|
sub handler { |
14
|
|
|
|
|
|
|
my $r = shift; |
15
|
|
|
|
|
|
|
my $uri = $r->uri; |
16
|
|
|
|
|
|
|
my $cgi = Apache::Request->instance($r); |
17
|
|
|
|
|
|
|
|
18
|
|
|
|
|
|
|
return OK unless ($Apache::AxKit::Plugin::BasicSession::session{_session_id}); |
19
|
|
|
|
|
|
|
$cgi->parms->set('session.id' => $Apache::AxKit::Plugin::BasicSession::session{_session_id}); |
20
|
|
|
|
|
|
|
my $session = \%Apache::AxKit::Plugin::BasicSession::session; |
21
|
|
|
|
|
|
|
foreach my $sesskey ( keys( %{$session} ) ) { |
22
|
|
|
|
|
|
|
next if ($sesskey =~ /^_/); |
23
|
|
|
|
|
|
|
$cgi->parms->set('session.keys.' . $sesskey => $session->{$sesskey} ); |
24
|
|
|
|
|
|
|
} |
25
|
|
|
|
|
|
|
|
26
|
|
|
|
|
|
|
return OK; |
27
|
|
|
|
|
|
|
} |
28
|
|
|
|
|
|
|
|
29
|
|
|
|
|
|
|
1; |
30
|
|
|
|
|
|
|
__END__ |