File Coverage

blib/lib/Prancer/Session/Store/Memory.pm
Criterion Covered Total %
statement 15 15 100.0
branch n/a
condition n/a
subroutine 5 5 100.0
pod n/a
total 20 20 100.0


line stmt bran cond sub pod time code
1             package Prancer::Session::Store::Memory;
2              
3 1     1   764 use strict;
  1         2  
  1         44  
4 1     1   6 use warnings FATAL => 'all';
  1         2  
  1         47  
5              
6 1     1   5 use version;
  1         1  
  1         7  
7             our $VERSION = '1.02';
8              
9 1     1   532 use Plack::Session::Store;
  1         206  
  1         23  
10 1     1   5 use parent qw(Plack::Session::Store);
  1         2  
  1         4  
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