This link has been bookmarked by 29 people . It was first bookmarked on 02 Mar 2006, by Wade Ren.
-
10 Apr 07
-
09 Apr 07
-
01 Apr 07
-
31 Mar 07
-
27 Mar 07
-
16 Nov 06
-
- No Sessions
- You can completely turn sessions off and Rails will keep no session data.
- Memory Store
- The Rails process keeps the session data in-memory.
- DRb Store
- A DRb server runs outside of the Rails process, and Rails communicates its session data back and forth with the DRb server.
- PStore
- PStore marshals session data and stores it in temporary files. Rails is set up for PStore by default.
- ActiveRecord Store
- Rails can keep the session data in the application's database table.
-
-
07 Apr 06
-
05 Apr 06
-
Rails and the Ruby CGI library do not clean up stale session data on their own (whether or not they should is a discussion for another day), so it is up to the application writer to perform housekeeping tasks to keep the application healthy.
-
ActiveRecord Store comes with Rails and allows an application's session data to be kept in the database (or a database) by using ActiveRecord. This can make housekeeping very convenient as well as adding a bit of security that may not be available to the other storage containers. This does come at a cost, though, as the overhead of ActiveRecord and the RDBMS does result in a drop in performance. Whether this drop is significant is dependent upon the expected traffic to the site, but it is significant enough to warrant serious consideration in many cases.
-
Rails and the Ruby CGI library do not clean up stale session data on their own (whether or not they should is a discussion for another day), so it is up to the application writer to perform housekeeping tasks to keep the application healthy.
-
-
09 Dec 05
Would you like to comment?
Join Diigo for a free account, or sign in if you are already a member.