line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
#$Id: SessionSH.pm 97 2007-06-17 13:18:56Z zag $ |
2
|
|
|
|
|
|
|
|
3
|
|
|
|
|
|
|
package HTML::WebDAO::SessionSH; |
4
|
5
|
|
|
5
|
|
10714
|
use strict; |
|
5
|
|
|
|
|
10
|
|
|
5
|
|
|
|
|
151
|
|
5
|
5
|
|
|
5
|
|
27
|
use warnings; |
|
5
|
|
|
|
|
9
|
|
|
5
|
|
|
|
|
132
|
|
6
|
5
|
|
|
5
|
|
24
|
use HTML::WebDAO::Base; |
|
5
|
|
|
|
|
9
|
|
|
5
|
|
|
|
|
377
|
|
7
|
5
|
|
|
5
|
|
2729
|
use HTML::WebDAO::Session; |
|
0
|
|
|
|
|
|
|
|
0
|
|
|
|
|
|
|
8
|
|
|
|
|
|
|
use Data::Dumper; |
9
|
|
|
|
|
|
|
use base qw( HTML::WebDAO::Session ); |
10
|
|
|
|
|
|
|
|
11
|
|
|
|
|
|
|
#Need to be forever called from over classes; |
12
|
|
|
|
|
|
|
sub Init { |
13
|
|
|
|
|
|
|
my $self = shift; |
14
|
|
|
|
|
|
|
my %args = @_; |
15
|
|
|
|
|
|
|
$self->SUPER::Init(@_); |
16
|
|
|
|
|
|
|
delete $args{store}; |
17
|
|
|
|
|
|
|
Params $self ( \%args ); |
18
|
|
|
|
|
|
|
} |
19
|
|
|
|
|
|
|
|
20
|
|
|
|
|
|
|
#Can be overlap if you choose another |
21
|
|
|
|
|
|
|
#alghoritm generate unique session ID (i.e cookie,http_auth) |
22
|
|
|
|
|
|
|
sub ___get_id { |
23
|
|
|
|
|
|
|
die "aaa"; |
24
|
|
|
|
|
|
|
return rand(100); |
25
|
|
|
|
|
|
|
} |
26
|
|
|
|
|
|
|
|
27
|
|
|
|
|
|
|
sub print_header() { |
28
|
|
|
|
|
|
|
return '' |
29
|
|
|
|
|
|
|
} |
30
|
|
|
|
|
|
|
|
31
|
|
|
|
|
|
|
sub sess_servise { |
32
|
|
|
|
|
|
|
my $self= shift; |
33
|
|
|
|
|
|
|
return $self->SUPER::sess_servise(@_) |
34
|
|
|
|
|
|
|
|
35
|
|
|
|
|
|
|
} |
36
|
|
|
|
|
|
|
|
37
|
|
|
|
|
|
|
sub ExecEngine() { |
38
|
|
|
|
|
|
|
my ( $self, $eng_ref ) = @_; |
39
|
|
|
|
|
|
|
$eng_ref->RegEvent( $self, "_sess_servise", \&sess_servise ); |
40
|
|
|
|
|
|
|
|
41
|
|
|
|
|
|
|
#print $self->print_header(); |
42
|
|
|
|
|
|
|
# $eng_ref->Work($self); |
43
|
|
|
|
|
|
|
|
44
|
|
|
|
|
|
|
#print @{$eng_ref->Fetch()}; |
45
|
|
|
|
|
|
|
# $self->store_session($eng_ref); |
46
|
|
|
|
|
|
|
# $eng_ref->_destroy; |
47
|
|
|
|
|
|
|
} |
48
|
|
|
|
|
|
|
|
49
|
|
|
|
|
|
|
1; |