Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Perl
Branch: master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
lib/Plack/Session/State
t
.gitignore
.travis.yml
Build.PL
Changes
LICENSE
META.json
README.md
cpanfile
minil.toml

README.md

Build Status

NAME

Plack::Session::State::URI - uri-based session state

SYNOPSIS

use File::Temp qw/tempdir/;
use HTTP::Status qw/HTTP_OK/;
use Plack::Builder;
use Plack::Session::Store::File;
use Plack::Session::State::URI;

my $app = sub {
    return [
        HTTP_OK,
        ['Content-Type' => 'text/plain'],
        ['Hello Foo']
    ];
};

builder {
    my $tmpdir = tempdir('XXXXXXXX', CLEANUP => 1, TMPDIR => 1);
    my $store = Plack::Session::Store::File->new(dir => $tmpdir);
    my $state = Plack::Session::State::URI->new(session_key => 'sid');

    enable 'Session', store => $store, state => $state;

    $app;
};

DESCRIPTION

Plack::Session::State::URI is uri-based session state

AUTHOR

Shinichiro Aska

SEE ALSO

LICENSE

This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.

Something went wrong with that request. Please try again.