line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package Prancer::Session::Store::Memory; |
2
|
|
|
|
|
|
|
|
3
|
1
|
|
|
1
|
|
966
|
use strict; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
30
|
|
4
|
1
|
|
|
1
|
|
5
|
use warnings FATAL => 'all'; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
33
|
|
5
|
|
|
|
|
|
|
|
6
|
1
|
|
|
1
|
|
4
|
use version; |
|
1
|
|
|
|
|
3
|
|
|
1
|
|
|
|
|
6
|
|
7
|
|
|
|
|
|
|
our $VERSION = '1.05'; |
8
|
|
|
|
|
|
|
|
9
|
1
|
|
|
1
|
|
845
|
use Plack::Session::Store; |
|
1
|
|
|
|
|
274
|
|
|
1
|
|
|
|
|
30
|
|
10
|
1
|
|
|
1
|
|
5
|
use parent qw(Plack::Session::Store); |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
6
|
|
11
|
|
|
|
|
|
|
|
12
|
|
|
|
|
|
|
1; |
13
|
|
|
|
|
|
|
|
14
|
|
|
|
|
|
|
=head1 NAME |
15
|
|
|
|
|
|
|
|
16
|
|
|
|
|
|
|
Prancer::Session::Store::Memory |
17
|
|
|
|
|
|
|
|
18
|
|
|
|
|
|
|
=head1 SYNOPSIS |
19
|
|
|
|
|
|
|
|
20
|
|
|
|
|
|
|
This package implements a session handler where all sessions are kept in |
21
|
|
|
|
|
|
|
memory. B. If the server restarts then |
22
|
|
|
|
|
|
|
all of your users will be logged out. If you are using a multi-process server |
23
|
|
|
|
|
|
|
like L then your users will be logged out whenever they connect to a |
24
|
|
|
|
|
|
|
different process or basically every time they connect. This should be used |
25
|
|
|
|
|
|
|
strictly for testing. |
26
|
|
|
|
|
|
|
|
27
|
|
|
|
|
|
|
Though this will be the default session handler if none is configured, it can |
28
|
|
|
|
|
|
|
be explicitly configured like this: |
29
|
|
|
|
|
|
|
|
30
|
|
|
|
|
|
|
session: |
31
|
|
|
|
|
|
|
store: |
32
|
|
|
|
|
|
|
driver: Prancer::Session::Store::Memory |
33
|
|
|
|
|
|
|
|
34
|
|
|
|
|
|
|
=cut |