module Authlogic::ActsAsAuthentic::LoggedInStatus
Since web applications are stateless there is not sure fire way to tell if a user is logged in or not, from the database perspective. The best way to do this is to provide a “timeout” based on inactivity. So if that user is inactive for a certain amount of time we assume they are logged out. That's what this module is all about.
Public Class Methods
included(klass)
click to toggle source
# File lib/authlogic/acts_as_authentic/logged_in_status.rb, line 8 def self.included(klass) klass.class_eval do extend Config add_acts_as_authentic_module(Methods) end end