Mojolicious::Sessions::Storable - Storable session manager for Mojolicious
use Mojolicious::Lite; use Mojolicious::Sessions::Storable; use Plack::Session::Store::File; my $sessions = Mojolicious::Sessions::Storable->new( session_store => Plack::Session::Store::File->new ); app->sessions($sessions);
Mojolicious::Sessions::Storable is a storable session manager for Mojolicious.
Mojolicious::Sessions::Storable inherits all options from Mojolicious::Sessions and supports the following new ones.
This is expected to be an instance of Plack::Session::Store or an object that implements the same interface. If no option is provided the default Mojolicious::Sessions will be used.
This is a CODE ref use to generate unique session ids. by default it will generate a SHA1 using fairly sufficient entropy.
Mojolicious::Sessions::Storable inherits all methods from Mojolicious::Sessions.
hayajo <hayajo@cpan.org>
Copyright 2013- hayajo
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
Mojolicious, Mojolicious::Sessions, Mojolicious::Plugin::SessionStore, Plack::Middleware::Session
To install Mojolicious::Plugin::SessionStore, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Mojolicious::Plugin::SessionStore
CPAN shell
perl -MCPAN -e shell install Mojolicious::Plugin::SessionStore
For more information on module installation, please visit the detailed CPAN module installation guide.