module Authlogic::Session::Cookies::Config
Configuration for the cookie feature set.
Public Instance Methods
httponly(value = nil)
click to toggle source
Should the cookie be set as httponly? If true, the cookie will not be accessable from javascript
-
Default:
false -
Accepts:
Boolean
# File lib/authlogic/session/cookies.rb, line 64 def httponly(value = nil) rw_config(:httponly, value, false) end
Also aliased as: httponly=
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_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=
secure(value = nil)
click to toggle source
Should the cookie be set as secure? If true, the cookie will only be sent over SSL connections
-
Default:
false -
Accepts:
Boolean
# File lib/authlogic/session/cookies.rb, line 55 def secure(value = nil) rw_config(:secure, value, false) end
Also aliased as: secure=