X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?p=catagits%2FCatalyst-Plugin-Session-State-Cookie.git;a=blobdiff_plain;f=t%2Flive_app.t;h=a1039567de01fdf1a39d2ee4f469889be819144b;hp=0cdb75e55de3782ef9c3b48293a1a25fd8a83ff6;hb=6a9ca807fd875bab160038c420728cbc839ce04f;hpb=602b9593e1528d5d1085e3414400e6bc6458c1f6 diff --git a/t/live_app.t b/t/live_app.t index 0cdb75e..a103956 100644 --- a/t/live_app.t +++ b/t/live_app.t @@ -56,3 +56,10 @@ cmp_ok( $expired, "<", $updated_expired, "streaming also extends cookie" ); $m->get_ok( "http://localhost/deleteme", "get page" ); $m->content_is( 1, 'session id changed' ); + +$m->get_ok( "https://localhost/page", "get page over HTTPS - init session"); +$m->content_contains( "hit number 1", "first hit" ); +$m->get_ok( "http://localhost/page", "get page again over HTTP"); +$m->content_contains( "hit number 1", "first hit again - cookie not sent" ); +$m->get_ok( "https://localhost/page", "get page over HTTPS"); +$m->content_contains( "hit number 2", "second hit" );