10 use Plack::Session::State::Cookie;
11 use Plack::Session::Store;
14 use t::lib::TestSession;
16 t::lib::TestSession::run_all_tests(
17 store => Plack::Session::Store->new,
18 state => Plack::Session::State::Cookie->new,
21 open my $in, '<', \do { my $d };
23 'psgi.version' => [ 1, 0 ],
25 'psgi.errors' => *STDERR,
26 'psgi.url_scheme' => 'http',
28 REQUEST_METHOD => 'GET',
29 HTTP_COOKIE => join "; " => map { $_ . "=" . $cookies->{ $_ } } keys %$cookies,
32 response_test => sub {
33 my ($res_cb, $session_id, $check_expired) = @_;
37 $cookie = Plack::Util::header_get($res->[1], 'Set-Cookie');
40 like $cookie, qr/plack_session=$session_id/;
42 like $cookie, qr/expires=/;