line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package HTTP::Session2::Expired; |
2
|
12
|
|
|
12
|
|
31846
|
use strict; |
|
12
|
|
|
|
|
28
|
|
|
12
|
|
|
|
|
467
|
|
3
|
12
|
|
|
12
|
|
67
|
use warnings; |
|
12
|
|
|
|
|
31
|
|
|
12
|
|
|
|
|
392
|
|
4
|
12
|
|
|
12
|
|
60
|
use utf8; |
|
12
|
|
|
|
|
23
|
|
|
12
|
|
|
|
|
86
|
|
5
|
12
|
|
|
12
|
|
482
|
use 5.008_001; |
|
12
|
|
|
|
|
56
|
|
|
12
|
|
|
|
|
553
|
|
6
|
12
|
|
|
12
|
|
65
|
use Carp (); |
|
12
|
|
|
|
|
23
|
|
|
12
|
|
|
|
|
353
|
|
7
|
12
|
|
|
12
|
|
10345
|
use parent qw(HTTP::Session2::Base); |
|
12
|
|
|
|
|
3500
|
|
|
12
|
|
|
|
|
71
|
|
8
|
|
|
|
|
|
|
|
9
|
1
|
|
|
1
|
1
|
919
|
sub set { Carp::croak("You cannot set anything to expired session") } |
10
|
1
|
|
|
1
|
1
|
447
|
sub get { Carp::croak("You cannot get anything from expired session") } |
11
|
1
|
|
|
1
|
1
|
649
|
sub remove { Carp::croak("You cannot remove anything from expired session") } |
12
|
|
|
|
|
|
|
|
13
|
|
|
|
|
|
|
sub finalize { |
14
|
6
|
|
|
6
|
0
|
15
|
my ($self) = @_; |
15
|
|
|
|
|
|
|
|
16
|
6
|
|
|
|
|
16
|
my @cookies; |
17
|
|
|
|
|
|
|
|
18
|
|
|
|
|
|
|
# Finalize session cookie |
19
|
|
|
|
|
|
|
{ |
20
|
6
|
|
|
|
|
12
|
my %cookie = %{$self->session_cookie}; |
|
6
|
|
|
|
|
11
|
|
|
6
|
|
|
|
|
66
|
|
21
|
6
|
|
|
|
|
22
|
my $name = delete $cookie{name}; |
22
|
6
|
|
|
|
|
45
|
push @cookies, $name => +{ |
23
|
|
|
|
|
|
|
%cookie, |
24
|
|
|
|
|
|
|
value => '', |
25
|
|
|
|
|
|
|
expires => '-1d', |
26
|
|
|
|
|
|
|
}; |
27
|
|
|
|
|
|
|
} |
28
|
|
|
|
|
|
|
|
29
|
|
|
|
|
|
|
# Finalize XSRF cookie |
30
|
|
|
|
|
|
|
{ |
31
|
6
|
|
|
|
|
14
|
my %cookie = %{$self->xsrf_cookie}; |
|
6
|
|
|
|
|
10
|
|
|
6
|
|
|
|
|
62
|
|
32
|
6
|
|
|
|
|
17
|
my $name = delete $cookie{name}; |
33
|
6
|
|
|
|
|
74
|
push @cookies, $name => +{ |
34
|
|
|
|
|
|
|
%cookie, |
35
|
|
|
|
|
|
|
value => '', |
36
|
|
|
|
|
|
|
expires => '-1d', |
37
|
|
|
|
|
|
|
}; |
38
|
|
|
|
|
|
|
} |
39
|
|
|
|
|
|
|
|
40
|
6
|
|
|
|
|
28
|
return @cookies; |
41
|
|
|
|
|
|
|
} |
42
|
|
|
|
|
|
|
|
43
|
|
|
|
|
|
|
1; |
44
|
|
|
|
|
|
|
|