Class/Module Index [+]

Quicksearch

Authlogic::Session::Cookies::Config

Configuration for the cookie feature set.

Public Instance Methods

remember_me(value = nil) click to toggle source

If sessions should be remembered by default or not.

  • Default: false

  • Accepts: Boolean

# File lib/authlogic/session/cookies.rb, line 37
def remember_me(value = nil)
  rw_config(:remember_me, value, false)
end
Also aliased as: remember_me=
remember_me=(value = nil) click to toggle source
Alias for: remember_me
remember_me_for(value = :_read) click to toggle source

The length of time until the cookie expires.

  • Default: 3.months

  • Accepts: Integer, length of time in seconds, such as 60 or 3.months

# File lib/authlogic/session/cookies.rb, line 46
def remember_me_for(value = :_read)
  rw_config(:remember_me_for, value, 3.months, :_read)
end
Also aliased as: remember_me_for=
remember_me_for=(value = :_read) click to toggle source
Alias for: remember_me_for

[Validate]

Generated with the Darkfish Rdoc Generator 2.