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(
cookie_key => 'foo_sid'
),
request => $c->req,
);
Yet another session manager.
easy to integrate with the HTTP::Engine manpage =)
load_session()
load session
html_filter($html)
filtering HTML
redirect_filter($url)
filtering redirect URL
header_filter($res)
filtering header
response_filter($res)
filtering response. this method runs html_filter, redirect_filter and header_filter.
keys()
keys of session.
get session item
set session item
remove item.
as_hashref()
session as hashref.
expire()
expire the session
regenerate_session_id([$delete_old])
regenerate session id.remove old one when $delete_old is true value.
internal use only
Tokuhiro Matsuno <tokuhirom AAJKLFJEF GMAIL COM>
the Catalyst::Plugin::Session manpage, the Sledge::Session manpage
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.