HTTP::Session - simple session
use HTTP::Session; my $session = HTTP::Session->new( store => HTTP::Session::Store::Memcached->new( memd => Cache::Memcached->new({ servers => ['127.0.0.1:11211'], }), ), state => HTTP::Session::State::Cookie->new( name => 'foo_sid' ), request => $c->req, );
Yet another session manager.
easy to integrate with PSGI =)
This method creates new instance of HTTP::Session.
store is instance of HTTP::Session::Store::*.
store
state is instance of HTTP::Session::State::*.
state
request is duck typed object.request object should have header, address, param. You can use PSGI's $env instead.
request
header
address
param
filtering HTML
filtering redirect URL
filtering header
filtering response. this method runs html_filter, redirect_filter and header_filter.
$res should be PSGI's response array, instance of HTTP::Response, or HTTP::Engine::Response.
keys of session.
get session item
set session item
remove item.
session as hashref.
expire the session
regenerate session id.remove old one when $delete_old is true value.
commit the session data.
Some storage doesn't care the old session data.Please call $store->cleanup( $min ); manually.
Tokuhiro Matsuno <tokuhirom AAJKLFJEF GMAIL COM>
kazuhooku amachang walf443 yappo nekokak
I use github. repo url is here http://github.com/tokuhirom/http-session/tree/master
Catalyst::Plugin::Session, Sledge::Session
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
To install HTTP::Session, copy and paste the appropriate command in to your terminal.
cpanm
cpanm HTTP::Session
CPAN shell
perl -MCPAN -e shell install HTTP::Session
For more information on module installation, please visit the detailed CPAN module installation guide.