NAME
HTTP::Session - simple session
SYNOPSIS
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,
);
DESCRIPTION
Yet another session manager.
easy to integrate with HTTP::Engine =)
METHODS
- $session->load_session()
-
load session
- $session->response_filter()
-
filtering response
- $session->keys()
-
keys of session.
- $session->get(key)
-
get session item
- $session->set(key, val)
-
set session item
- $session->remove(key)
-
remove item.
- $session->remove_all()
-
remove whole items
- $session->as_hashref()
-
session as hashref.
- $session->expire()
-
expire the session
AUTHOR
Tokuhiro Matsuno <tokuhirom AAJKLFJEF GMAIL COM>
SEE ALSO
Catalyst::Plugin::Session, Sledge::Session
LICENSE
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.