No commit activity in last 3 years
No release in over 3 years
Rack session store for MongoDB
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

>= 0

Runtime

>= 0
>= 0
 Project Readme

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.