aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRafael França <rafaelmfranca@gmail.com>2016-03-23 13:15:14 -0300
committerRafael França <rafaelmfranca@gmail.com>2016-03-23 13:15:14 -0300
commitd7647e9a3351c8ee16fa48c03f1c906ad75db3eb (patch)
tree08f2fbf067b83cfe0012bafe1ddbb90e9b89193a
parent7e7721d36ca9017e3f6bd8199ffb67cf6c095cef (diff)
parenta2df57c991b844a9b963bc452fa517cc53560686 (diff)
downloadrails-d7647e9a3351c8ee16fa48c03f1c906ad75db3eb.tar.gz
rails-d7647e9a3351c8ee16fa48c03f1c906ad75db3eb.tar.bz2
rails-d7647e9a3351c8ee16fa48c03f1c906ad75db3eb.zip
Merge pull request #24284 from olivierlacan/patch-1
Remove reference to unmaintained plugin/gem in Security guide
-rw-r--r--guides/source/security.md2
1 files changed, 1 insertions, 1 deletions
diff --git a/guides/source/security.md b/guides/source/security.md
index f4a9f64669..4883c1abe7 100644
--- a/guides/source/security.md
+++ b/guides/source/security.md
@@ -160,7 +160,7 @@ The most effective countermeasure is to _issue a new session identifier_ and dec
reset_session
```
-If you use the popular RestfulAuthentication plugin for user management, add reset_session to the SessionsController#create action. Note that this removes any value from the session, _you have to transfer them to the new session_.
+If you use the popular [Devise](https://rubygems.org/gems/devise) gem for user management, it will automatically expire sessions on sign in and sign out for you. If you roll your own, remember to expire the session after your sign in action (when the session is created). This will remove values from the session, therefore _you will have to transfer them to the new session_.
Another countermeasure is to _save user-specific properties in the session_, verify them every time a request comes in, and deny access, if the information does not match. Such properties could be the remote IP address or the user agent (the web browser name), though the latter is less user-specific. When saving the IP address, you have to bear in mind that there are Internet service providers or large organizations that put their users behind proxies. _These might change over the course of a session_, so these users will not be able to use your application, or only in a limited way.