| 1 | package Mojolicious::Sessions::ThreeS::SidGen; | ||
| 2 | 3 | $Mojolicious::Sessions::ThreeS::SidGen::VERSION = '0.004'; | |
| 3 | 3 | ▶ | use Mojo::Base -base; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 4 | 3 | ▶ | use Carp; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 5 | |||
| 6 | =head1 NAME | ||
| 7 | |||
| 8 | Mojolicious::Sessions::ThreeS::SidGen - Session ID generator base class | ||
| 9 | |||
| 10 | =head1 SYNOPSIS | ||
| 11 | |||
| 12 | This is an abstract class that you can inherit from to implement session ID generation. | ||
| 13 | |||
| 14 | To use this, inherit from it using C<Mojo::Base> and implement the methods marked as ABSTRACT. | ||
| 15 | |||
| 16 | =cut | ||
| 17 | |||
| 18 | =head2 generate_sid | ||
| 19 | |||
| 20 | ABSTRACT | ||
| 21 | |||
| 22 | Generates a brand new session ID. | ||
| 23 | |||
| 24 | Called with the current mojolicious controller by the framework: | ||
| 25 | |||
| 26 | my $new_sid = $this->generate_sid( $controller ); | ||
| 27 | |||
| 28 | =cut | ||
| 29 | |||
| 30 | 0 | ▶ | sub generate_sid{ |
|
Subroutine
generate_sid: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 31 | 0 | confess("Implement this"); | |
| 32 | } | ||
| 33 | |||
| 34 | 3 | 1; | |