NAME
Mojo::Hakkefuin::Sessions - Session manager with available set up max-age
SYNOPSIS
use Mojo::Hakkefuin::Sessions;
my $sessions = Mojo::Hakkefuin::Sessions->new;
$sessions->cookie_name('myapp');
$sessions->default_expiration(86400);
$sessions->max_age(1);
DESCRIPTION
Mojo::Hakkefuin::Sessions inherits all from Mojolicious::Sessions. Its meant to available setup max-age.
ATTRIBUTES
Mojo::Hakkefuin::Sessions implements the attributes from Mojolicious::Sessions, and additional attributes as the following.
max_age
my $bool = $sessions->max_age;
$sessions = $sessions->max_age($bool);
Set the max-age for all session cookies. If "max_age" is set, the session cookie will have the "expires" and "max-age" attributes, and when the browser finds the "max-age" attribute in a cookie, the cookie expiration will use "max-age" as a top priority. The "max-age" attribute only applies if the browser supports this attribute. Before set this attribute, please see Browser Compatibility
METHODS
Mojo::Hakkefuin::Sessions from all methods Mojolicious::Sessions and implements the following new ones.
store
$sessions->store;
Store session data in signed cookie.
SEE ALSO
Mojolicious::Sessions, Mojolicious, Mojolicious::Guides, https://mojolicious.org.