This project is archived and is in readonly mode.
Rails/Rack inconsistency about `:expires_after`/`:expires` cookie option.
Reported by Aaron Gibralter | March 27th, 2011 @ 08:48 PM
Rails seems to indicate that it accepts a
:expires_after
option for cookies in the session
setup. However, it uses Rack's Rack::Utils.set_cookie_header!
method... which expects an :expires
option...
https://github.com/rails/rails/blob/v2.3.11/actionpack/lib/action_c...
https://github.com/rack/rack/blob/1.1/lib/rack/utils.rb#L176-205
Comments and changes to this ticket
-
Aaron Gibralter March 27th, 2011 @ 09:10 PM
What's more -- Rack seems to expect the
:expires
option as aTime
object. I keep gettingcan't clone Fixnum (TypeError)
because I have:expires
in my environment.rb set to a number of seconds in the future... Setting theconfig.action_controller.session = { :expires => '...' }
to aTime
object doesn't really make sense, does it?
Create your profile
Help contribute to this project by taking a few moments to create your personal profile. Create your profile »
<h2 style="font-size: 14px">Tickets have moved to Github</h2>
The new ticket tracker is available at <a href="https://github.com/rails/rails/issues">https://github.com/rails/rails/issues</a>