| 1 | package Prancer::Session::Store::Memory; | ||
| 2 | |||
| 3 | 1 | ▶ | use strict; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 4 | 1 | ▶ | use warnings FATAL => 'all'; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 5 | |||
| 6 | 1 | ▶ | use version; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 7 | 1 | our $VERSION = '1.05'; | |
| 8 | |||
| 9 | 1 | ▶ | use Plack::Session::Store; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 10 | 1 | ▶ | use parent qw(Plack::Session::Store); |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 11 | |||
| 12 | 1 | 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<THIS SHOULD NOT BE USED IN PRODUCTION>. 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<Starman> 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 | ||