Rack session store for MongoDB
Pull request Compare This branch is even with migrs:master.
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.
lib
spec
.gitignore
.travis.yml
CHANGES.md
Gemfile
README.md
Rakefile
rack-session-mongo.gemspec

README.md

rack-session-mongo

Rack session store for MongoDB

http://github.com/migrs/rack-session-mongo

Build Status

Installation

gem install rack-session-mongo

Usage

Simple (localhost:27017 db:sessions, collection:sessions)

use Rack::Session::Mongo

Set MongoDB connection

conn = Mongo::Coneection.new('myhost', 27017)
use Rack::Session::Mongo, conn

Set MongoDB instance

conn = Mongo::Coneection.new('myhost', 27017)
db = conn['myapp']
use Rack::Session::Mongo, db

Specify DB host with some config

use Rack::Session::Mongo, {
  :host         => 'myhost:27017',
  :db_name      => 'myapp',
  :marshal_data => false,
  :expire_after => 600
}

About MongoDB

License

rack-session-mongo is Copyright (c) 2012 Masato Igarashi(@migrs) and distributed under the MIT license.