public
Description: PLEASE CHECK http://github.com/lifo/docrails/wikis
Homepage: http://weblog.rubyonrails.org/2008/5/2/help-improve-rails-documentation-on-git-branch
Clone URL: git://github.com/lifo/docrails.git
Search Repo:
revised a few details in session docs
fxn (author)
Wed May 07 02:23:54 -0700 2008
commit  88e4de5ab71388bd7f58713dfd15bb594971ae79
tree    aa17f53d8ce7ec8bb1906fe6185a7d9b82072a27
parent  080d5b7acb696190e0c2d1cba46951371f27bc26
...
159
160
161
162
163
 
164
165
166
 
 
167
168
 
169
 
 
 
 
 
170
171
172
173
 
 
174
175
 
176
177
 
178
179
 
 
180
181
 
182
183
 
 
184
185
186
...
159
160
161
 
 
162
163
 
 
164
165
166
 
167
168
169
170
171
172
173
174
175
 
 
176
177
178
 
179
180
 
181
182
 
183
184
185
 
186
187
 
188
189
190
191
192
0
@@ -159,28 +159,34 @@
0
   #
0
   # Hello #{session[:person]}
0
   #
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
   #
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
   #
0
- # Do not put secret information in session!
0
+ # or you can remove the entire session with +reset_session+.
0
   #
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
+ #
0
+ # Do not put secret information in cookie-based sessions!
0
+ #
0
   # Other options for session storage are:
0
   #
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
   #
0
- # config.action_controller.session_store = :active_record_store
0
+ # config.action_controller.session_store = :active_record_store
0
   #
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
   #
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
   #
0
- # config.action_controller.session_store = :mem_cache_store
0
+ # config.action_controller.session_store = :mem_cache_store
0
   #
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.
0
   #
0
   # == Responses
0
   #

Comments

    No one has commented yet.