The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

Mojolicious::Sessions::ThreeS::Storage - Abstract session storage base class

SYNOPSIS

Implement a subclass of this using Mojo::Base and implement all methods marked as ABSTRACT.

get_session

ABSTRACT

Gets the session HashRef from the given Id. Can return undef if the session is expired or gone.

Called by the framework like this:

 if( my $session = $this->get_session( $session_id ) ){
    ...
 }

store_session

ABSTRACT

Stores the session HashRef against the given ID. Called by the framework like this:

  $this->store_session( $session_id , $session );

Note that the session might contain an expires Epoch time (in seconds). You should try to implement this expiry yourself to the best of the underlying storage ability.

remove_session_id

ABSTRACT

Removes the session with the given session_id from the storage. This is idem-potent.

Called by the framework like this:

  $this->remove_session_id( $session_id );