Configuration for the cookie feature set.
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
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
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
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