lib/authlogic/session/cookies.rb
def persist_by_cookie
            persistence_token, record_id = cookie_credentials
            if persistence_token.present?
              record = search_for_record("find_by_#{klass.primary_key}", record_id)
              self.unauthorized_record = record if record && record.persistence_token == persistence_token
              valid?
            else
              false
            end
          end
# Tries to validate the session from information in the cookie
Tries to validate the session from information in the cookie
Tries to validate the session from information in the cookie
def persist_by_cookie
            persistence_token, record_id = cookie_credentials
            if persistence_token.present?
              record = search_for_record("find_by_#{klass.primary_key}", record_id)
              self.unauthorized_record = record if record && record.persistence_token == persistence_token
              valid?
            else
              false
            end
          end
def persist_by_cookie persistence_token , record_id = cookie_credentials if persistence_token . present? record = search_for_record ( "find_by_#{klass.primary_key}" , record_id ) self . unauthorized_record = record if record && record . persistence_token == persistence_token valid? else false end end
Tries to validate the session from information in the cookie
Tries to validate the session from information in the cookie