rack.session.options - 何时使用哪个?

时间:2013-02-20 18:13:51

标签: ruby-on-rails-3.2 session-cookies rack

是否有区别:跳过和:除了延迟:延迟往往在旧版本中使用?各种选项是否有任何用例,何时应该使用?

非常感谢。

1 个答案:

答案 0 :(得分:2)

我希望看一眼at these comments in the Rack source code可能对你有帮助。

# :skip will not a set a cookie in the response nor update the session state

# :defer will not set a cookie in the response but still update the session
#   state if it is used with a backend