Mojolicious::Sessions::ThreeS::Storage - Abstract session storage base class
Implement a subclass of this using Mojo::Base and implement all methods marked as ABSTRACT.
Mojo::Base
ABSTRACT
Gets the session HashRef from the given Id. Can return undef if the session is expired or gone.
HashRef
Called by the framework like this:
if( my $session = $this->get_session( $session_id ) ){ ... }
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.
expires
Removes the session with the given session_id from the storage. This is idem-potent.
$this->remove_session_id( $session_id );
To install Mojolicious::Plugin::Sessions3S, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Mojolicious::Plugin::Sessions3S
CPAN shell
perl -MCPAN -e shell install Mojolicious::Plugin::Sessions3S
For more information on module installation, please visit the detailed CPAN module installation guide.