While I was dealing with cookies the other day, came across the commit https://github.com/rails/rails/commit/2d5a12a50bcd83fcc99865de759b82e661b28698
The current implementation is a bit confusing. In development environment, it allows to write cookie, while no in other environments. Upon writing cookies - such general behavior, discrepancy across environments should be better smoothed. If we want to control the behavior of writing cookie, use this configuration directive config.always_write_cookie, however it's not showing up in any docs. My plan is to remove Rails.env.development? check and add config.always_write_cookie into docs, so that the behavior can be controlled in certain cases. See my commit: https://github.com/hlcfan/rails/commit/8fb37e6b1f2ec5d417fa2963c2962ee21c6a9d51. Please let me know your thoughts, thanks! -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Core" group. To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-core+unsubscr...@googlegroups.com. To post to this group, send email to rubyonrails-core@googlegroups.com. Visit this group at https://groups.google.com/group/rubyonrails-core. For more options, visit https://groups.google.com/d/optout.