Catalyst-Plugin-Session-State-Cookie

 view release on metacpan or  search on metacpan

Changes  view on Meta::CPAN


0.11    2009-05-13
        - Change TestApp so that the application is in t/lib, to make it easier
          for Catalyst to force our package to be immutable.

0.10    2009-02-08
        - POD addition.
        - Switch from NEXT to MRO::Compat

0.09    2007-10-08
        - Bump dependencies so that streaming a file also causes the cookie to
          be updated.
          - Add tests for this

0.08    2007-09-14
        - Fix live test with Mech version 0.37+
        - Switch to Module::Install

0.07    2007-04-04 23:10:00
        - Fix the bug that caused sessions to expire immediately when another
          session was deleted previously in the same request cycle

t/live_app.t  view on Meta::CPAN

$res = $get->('/page');
ok $res->is_success, 'get page';
like $res->content, qr/hit number 5/, 'session data restored';

sleep 1;

$res = $get->('/stream');
ok $res->is_success, 'get stream';
like $res->content, qr/hit number 6/, 'session data restored';

cmp_ok $expired, '<', $cookie{expires}, 'streaming also extends cookie';

$res = $get->('/deleteme');
ok $res->is_success, 'get page';
is $res->content, '1', 'session id changed';

$res = $get->('https://localhost/page');
ok $res->is_success, 'get page over HTTPS - init session';
like $res->content, qr/hit number 1/, 'first hit';

$res = $get->('http://localhost/page');



( run in 0.242 second using v1.01-cache-2.11-cpan-4d50c553e7e )