line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package HTTP::Session2::Expired; |
2
|
11
|
|
|
11
|
|
31534
|
use strict; |
|
11
|
|
|
|
|
24
|
|
|
11
|
|
|
|
|
711
|
|
3
|
11
|
|
|
11
|
|
69
|
use warnings; |
|
11
|
|
|
|
|
22
|
|
|
11
|
|
|
|
|
368
|
|
4
|
11
|
|
|
11
|
|
59
|
use utf8; |
|
11
|
|
|
|
|
25
|
|
|
11
|
|
|
|
|
86
|
|
5
|
11
|
|
|
11
|
|
537
|
use 5.008_001; |
|
11
|
|
|
|
|
41
|
|
|
11
|
|
|
|
|
532
|
|
6
|
11
|
|
|
11
|
|
79
|
use Carp (); |
|
11
|
|
|
|
|
22
|
|
|
11
|
|
|
|
|
462
|
|
7
|
11
|
|
|
11
|
|
11264
|
use parent qw(HTTP::Session2::Base); |
|
11
|
|
|
|
|
3916
|
|
|
11
|
|
|
|
|
64
|
|
8
|
|
|
|
|
|
|
|
9
|
1
|
|
|
1
|
1
|
1269
|
sub set { Carp::croak("You cannot set anything to expired session") } |
10
|
1
|
|
|
1
|
1
|
502
|
sub get { Carp::croak("You cannot get anything from expired session") } |
11
|
1
|
|
|
1
|
1
|
817
|
sub remove { Carp::croak("You cannot remove anything from expired session") } |
12
|
|
|
|
|
|
|
|
13
|
|
|
|
|
|
|
sub finalize { |
14
|
3
|
|
|
3
|
0
|
8
|
my ($self) = @_; |
15
|
|
|
|
|
|
|
|
16
|
3
|
|
|
|
|
6
|
my @cookies; |
17
|
|
|
|
|
|
|
|
18
|
|
|
|
|
|
|
# Finalize session cookie |
19
|
|
|
|
|
|
|
{ |
20
|
3
|
|
|
|
|
6
|
my %cookie = %{$self->session_cookie}; |
|
3
|
|
|
|
|
7
|
|
|
3
|
|
|
|
|
32
|
|
21
|
3
|
|
|
|
|
11
|
my $name = delete $cookie{name}; |
22
|
3
|
|
|
|
|
23
|
push @cookies, $name => +{ |
23
|
|
|
|
|
|
|
%cookie, |
24
|
|
|
|
|
|
|
value => '', |
25
|
|
|
|
|
|
|
expires => '-1d', |
26
|
|
|
|
|
|
|
}; |
27
|
|
|
|
|
|
|
} |
28
|
|
|
|
|
|
|
|
29
|
|
|
|
|
|
|
# Finalize XSRF cookie |
30
|
|
|
|
|
|
|
{ |
31
|
3
|
|
|
|
|
7
|
my %cookie = %{$self->xsrf_cookie}; |
|
3
|
|
|
|
|
7
|
|
|
3
|
|
|
|
|
28
|
|
32
|
3
|
|
|
|
|
10
|
my $name = delete $cookie{name}; |
33
|
3
|
|
|
|
|
19
|
push @cookies, $name => +{ |
34
|
|
|
|
|
|
|
%cookie, |
35
|
|
|
|
|
|
|
value => '', |
36
|
|
|
|
|
|
|
expires => '-1d', |
37
|
|
|
|
|
|
|
}; |
38
|
|
|
|
|
|
|
} |
39
|
|
|
|
|
|
|
|
40
|
3
|
|
|
|
|
15
|
return @cookies; |
41
|
|
|
|
|
|
|
} |
42
|
|
|
|
|
|
|
|
43
|
|
|
|
|
|
|
1; |
44
|
|
|
|
|
|
|
|