HTTP::Engine::Middleware::HTTPSession - session support at middleware layer
my $mw = HTTP::Engine::Middleware->new; $mw->install( 'HTTP::Engine::Middleware::HTTPSession' => { state => { class => 'URI', args => { session_id_name => 'foo_sid', }, }, store => { class => 'Test', args => { }, }, }); HTTP::Engine->new( interface => { module => 'YourFavoriteInterfaceHere', request_handler => $mw->handler( \&handler ), } )->run();
This middleware add the session management stuff for your web application
tokuhirom
HTTP::Engine::Middleware, HTTP::Session
To install HTTP::Engine::Middleware, copy and paste the appropriate command in to your terminal.
cpanm
cpanm HTTP::Engine::Middleware
CPAN shell
perl -MCPAN -e shell install HTTP::Engine::Middleware
For more information on module installation, please visit the detailed CPAN module installation guide.