Methods

Class/Module Index [+]

Quicksearch

Authlogic::Session::Timeout::InstanceMethods

Instance methods for the timeout feature.

Public Instance Methods

stale?() click to toggle source

Tells you if the record is stale or not. Meaning the record has timed out. This will only return true if you set logout_on_timeout to true in your configuration. Basically how a bank website works. If you aren't active over a certain period of time your session becomes stale and requires you to log back in.

# File lib/authlogic/session/timeout.rb, line 60
def stale?
  if remember_me?
    remember_me_expired?
  else
    !stale_record.nil? || (logout_on_timeout? && record && record.logged_out?)
  end
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.