Categorized: Database, Rails

Using MySQL for storing Rails sessions

$ rake db:sessions:create
$ rake db:migrate

Possibly use -c on the first command to add the migration file to SVN?

Uncomment this line in your config/environments.rb:

config.action_controller.session_store = :active_record_store

Then restart your app.

Doing this is supposed to be more better than the default of using the file system.

Comments

Nothing to see here yet. Start things off, why don't you?

What do you think about that?

Elsewhere in the empire: Home, Blog, APOD