NAME
Mojolicious::Sessions::ThreeS::State - Abstract session state manager
SYNOPSIS
Implement a subclass of this using Mojo::Base
and implement all methods marked as ABSTRACT
get_session_id
ABSTRACT
Return the current session_id if such a thing exists. Undef otherwise.
Called by the framework like this:
if( my $session_id = $this->get_session_id( $controller ) ){
...
}
set_session_id
ABSTRACT
Sets the given session_id against the client using the given Mojolicious::Controller
Called by the framework like this:
$this->set_session_id( $controller, $session_id , \%options );
Options can include:
expires: an epoch at which to expire the state. Please make your best effort to respect this if present.