Plack::Session::State::URI - uri-based session state
use Plack::Builder; use Plack::Session::Store::File; use Plack::Session::State::URI; my $app = sub { return [ 200, [ 'Content-Type' => 'text/plain' ], [ 'Hello Foo' ] ]; }; builder { enable 'Plack::Middleware::Session', store => Plack::Session::Store::File->new( dir => File::Temp->tempdir( 'XXXXXXXX', TMPDIR => 1, CLEANUP => 1 ) ), state => Plack::Session::State::URI->new( session_key => 'sid' ); $app; };
Plack::Session::State::URI is uri-based session state
Shinichiro Aska <s.aska.org {at} gmail.com>
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
To install Plack::Session::State::URI, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Plack::Session::State::URI
CPAN shell
perl -MCPAN -e shell install Plack::Session::State::URI
For more information on module installation, please visit the detailed CPAN module installation guide.