Active Record Session expiration in Rails 2.3

new on ror wrote:

Hello mate,

I'm wonder how to use database sessions store instead of cookies.
Rails 2.3

environment.rb

What I wonder is what are the advantages of using an active record
session store?

I assume people do this for a few reasons:

1. Need to persist sessions between browser launches...ay will be.

2. Need to store more that 4K of session data...

3. Need to store sensitive data inside session objects...

4. Need multiple app servers to scale by using the same data store.

Cookie based session store does that without hitting your database server.