lib/authlogic/session/timeout.rb in authlogic-3.8.0 vs lib/authlogic/session/timeout.rb in authlogic-4.0.0

- old
+ new

@@ -39,21 +39,21 @@ # per request basis, we have to define a time limit threshold that # determines when we consider a user to be "logged out". Meaning, if # they login and then leave the website, when do mark them as logged # out? I recommend just using this as a fun feature on your website or # reports, giving you a ballpark number of users logged in and active. - # This is not meant to be a dead accurate representation of a users + # This is not meant to be a dead accurate representation of a user's # logged in state, since there is really no real way to do this with web # based apps. Think about a user that logs in and doesn't log out. There # is no action that tells you that the user isn't technically still # logged in and active. # # That being said, you can use that feature to require a new login if # their session times out. Similar to how financial sites work. Just set # this option to true and if your record returns true for stale? then # they will be required to log back in. # - # Lastly, UserSession.find will still return a object is the session is + # Lastly, UserSession.find will still return an object if the session is # stale, but you will not get a record. This allows you to determine if # the user needs to log back in because their session went stale, or # because they just aren't logged in. Just call # current_user_session.stale? as your flag. #