plack / Plack-Middleware-Session

A very minimalist session library for Plack
Other
40 stars 29 forks source link

calculate cookie expires using lifetime #2

Closed miyagawa closed 14 years ago

miyagawa commented 14 years ago

Plack 0.99* dumped CGI::Simple::Cookie in cookie handling, which means you can't say expires => '+3M' etc. to set session cookie lifetime. Let's take a look at Catalyst::Plugin::Session how it deals with that.

miyagawa commented 14 years ago

Accept expires as seconds since new Plack::Response ditches CGI::Simple::Cookie. Added docs and tests for it. Closed by ee51674d7247c5988d29d157068fa1aef2f515ca