Module | Authlogic::Session::Cookies::Config |
In: |
lib/authlogic/session/cookies.rb
|
Configuration for the cookie feature set.
The name of the cookie or the key in the cookies hash. Be sure and use a unique name. If you have multiple sessions and they use the same cookie it will cause problems. Also, if a id is set it will be inserted into the beginning of the string. Exmaple:
session = UserSession.new session.cookie_key => "user_credentials" session = UserSession.new(:super_high_secret) session.cookie_key => "super_high_secret_user_credentials"
Should the cookie be set as httponly? If true, the cookie will not be accessable from javascript
The length of time until the cookie expires.