Mongo Session Gaggle
A simple barebones session store for MongoDB, for Rails 3.x only, with no extra code for Rack applications. It also will log the runtime for session retrieval and updates. You must connect to MongoDB on its behalf.
Installation
gem install mongo_session_gaggle
Configuration
At Zedkit we use the Mongoid ORM. An initializer example with a connection from there would be as follows:
Rails.application.config.session_store :mongo_store, :key => '_whatever', :expire_after => 30.days,
:collection => lambda { Mongoid.master.collection('sessions') }
But you can of course connect with whatever ORM you prefer.
Copyright
Copyright © 2010 Zedkit. See LICENSE for details. zedkit.com.