plack / Plack-Middleware-Session

A very minimalist session library for Plack
Other
39 stars 28 forks source link

change to use Cookie::Baker instead of Plack::Response #17

Closed kazeburo closed 10 years ago

kazeburo commented 10 years ago

Changed to use Cookie::Baker instead of Plack::Response in Plack::Session::State::Cookie. Cookie::Baker provides simple cookie string generator and parser. This p-r can simply add new Set-Cookie header, do not need finalize all response header and response body.

kazeburo commented 10 years ago

header_push('Set-Cookie',bake_cookie) is 600% faster than using Plack::Response https://gist.github.com/kazeburo/6896740