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
HTTP::Engine::Middleware, HTTP::Session