diff options
author | Vijay Dev <vijaydev.cse@gmail.com> | 2012-05-06 22:32:22 +0530 |
---|---|---|
committer | Vijay Dev <vijaydev.cse@gmail.com> | 2012-05-06 22:32:22 +0530 |
commit | ed1703bcb206a740957c0a93df5f25177dedc0de (patch) | |
tree | e848a437b5059a58772b8b13cd0b99ba817c418a /actionpack/lib/action_dispatch | |
parent | 89376004b103e5fbaf0e9389a57f7f298c065932 (diff) | |
download | rails-ed1703bcb206a740957c0a93df5f25177dedc0de.tar.gz rails-ed1703bcb206a740957c0a93df5f25177dedc0de.tar.bz2 rails-ed1703bcb206a740957c0a93df5f25177dedc0de.zip |
doc edits [ci skip]
Diffstat (limited to 'actionpack/lib/action_dispatch')
-rw-r--r-- | actionpack/lib/action_dispatch/middleware/cookies.rb | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/actionpack/lib/action_dispatch/middleware/cookies.rb b/actionpack/lib/action_dispatch/middleware/cookies.rb index 3a5442918d..771f075275 100644 --- a/actionpack/lib/action_dispatch/middleware/cookies.rb +++ b/actionpack/lib/action_dispatch/middleware/cookies.rb @@ -26,10 +26,9 @@ module ActionDispatch # # Sets a cookie that expires in 1 hour. # cookies[:login] = { :value => "XJ-122", :expires => 1.hour.from_now } # - # # Sets a signed cookie, which prevents a user from tampering with its value. + # # Sets a signed cookie, which prevents users from tampering with its value. # # The cookie is signed by your app's <tt>config.secret_token</tt> value. - # # Rails generates this value by default when you create a new Rails app. - # # Signed cookies must read with the signed method <tt>cookies.signed[:key]</tt> + # # It can be read using the signed method <tt>cookies.signed[:key]</tt> # cookies.signed[:user_id] = current_user.id # # # Sets a "permanent" cookie (which expires in 20 years from now). |