MATSUNO★Tokuhiro > HTTP-Session-0.21 > HTTP::Session

Download:
HTTP-Session-0.21.tar.gz

Dependencies

Annotate this POD

CPAN RT

Open  0
Report a bug
Module Version: 0.21   Source   Latest Release: HTTP-Session-0.32

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->html_filter($html)

filtering HTML

$session->redirect_filter($url)

filtering redirect URL

$session->header_filter($res)

filtering header

$session->response_filter($res)

filtering response. this method runs html_filter, redirect_filter and header_filter.

$session->keys()

keys of session.

$session->get(key)

get session item

$session->set(key, val)

set session item

$session->remove(key)

remove item.

$session->as_hashref()

session as hashref.

$session->expire()

expire the session

$session->regenerate_session_id([$delete_old])

regenerate session id.remove old one when $delete_old is true value.

BUILD

internal use only

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.