Module: Authlogic::ActsAsAuthentic::LoggedInStatus

Defined in:
lib/authlogic/acts_as_authentic/logged_in_status.rb

Overview

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.

Defined Under Namespace

Modules: Config, Methods

Class Method Summary collapse

Class Method Details

.included(klass) ⇒ Object



11
12
13
14
15
16
# File 'lib/authlogic/acts_as_authentic/logged_in_status.rb', line 11

def self.included(klass)
  klass.class_eval do
    extend Config
    add_acts_as_authentic_module(Methods)
  end
end