0
# Hello #{session[:person]}
0
- # For removing objects from the session, you can either assign a single key to nil, like <tt>session[:person] = nil</tt>, or you can
0
- # remove the entire session with reset_session.
0
+ # For removing objects from the session, you can either assign a single key to +nil+:
0
- # Sessions are stored in a browser cookie that's cryptographically signed, but unencrypted, by default. This prevents
0
- # the user from tampering with the session but also allows him to see its contents.
0
+ # # removes :person from session
0
+ # session[:person] = nil
0
- #
Do not put secret information in session!0
+ #
or you can remove the entire session with +reset_session+.0
+ # Sessions are stored by default in a browser cookie that's cryptographically signed, but unencrypted.
0
+ # This prevents the user from tampering with the session but also allows him to see its contents.
0
+ # Do not put secret information in cookie-based sessions!
0
# Other options for session storage are:
0
- # ActiveRecordStore: sessions are stored in your database, which works better than PStore with multiple app servers and,
0
- # unlike CookieStore, hides your session contents from the user. To use ActiveRecordStore, set
0
+ # * ActiveRecordStore - Sessions are stored in your database, which works better than PStore with multiple app servers and,
0
+ # unlike CookieStore, hides your session contents from the user. To use ActiveRecordStore, set
0
- #
config.action_controller.session_store = :active_record_store
0
+ #
config.action_controller.session_store = :active_record_store
0
- #
in your <tt>environment.rb</tt> and run <tt>rake db:sessions:create</tt>.
0
+ #
in your <tt>config/environment.rb</tt> and run <tt>rake db:sessions:create</tt>.
0
- # MemCacheStore: sessions are stored as entries in your memcached cache. Set the session store type in <tt>environment.rb</tt>:
0
+ # * MemCacheStore - Sessions are stored as entries in your memcached cache.
0
+ # Set the session store type in <tt>config/environment.rb</tt>:
0
- #
config.action_controller.session_store = :mem_cache_store
0
+ #
config.action_controller.session_store = :mem_cache_store
0
- # This assumes that memcached has been installed and configured properly. See the MemCacheStore docs for more information.
0
+ # This assumes that memcached has been installed and configured properly.
0
+ # See the MemCacheStore docs for more information.
Comments
No one has commented yet.