{"repo":"mongoid/mongo_session_store","free":true,"listed":false,"github":"https://github.com/mongoid/mongo_session_store","clone":"git clone https://github.com/mongoid/mongo_session_store.git","description":"MongoSessionStore is a Rails-compatible session store for MongoDB using either Mongoid or the MongoDB Ruby Driver. It also allows for custom Mongo session store that works with any (or no!) Mongo ODM","language":"Ruby","stars":55,"topics":["ruby","mongoid","rails","mongodb","sessions","session-storage","session-management"],"license":"MIT","category":"data-pipelines","readme_excerpt":"MongoSessionStore Description MongoSessionStore is a [Rails][rails]-compatible session store for [MongoDB][mongodb] using either [Mongoid][mongoid] or the [MongoDB Ruby Driver][mongo]. It also allows for custom Mongo session store that works with any (or no!) Mongo ODM. MongoSessionStore version 3 is compatible with Rails 5.0+. For Rails 3 support please check out issue [#17][issue-rails3] for options and let us know if you need support. Installation Add the mongo session store gem to your Gemfile . Use either the mongo or mongoid gems in combination with this gem. Configure the session store in the session store initializer in your Rails project. Configuration By default, the sessions will be stored in the \"sessions\" collection in MongoDB. If you want to use a different collection, you can set that in the session store initializer. Usage By default nothing has to be done outside the installation of the gem. It's possible to query your sessions. Development Test environment Start MongoDB with this script: Testing To run the tests for a specific store. You must first set a BUNDLE GEMFILE in the environment. You can also use Docker, see the section below this one. Examples: Docker testing To run tests in a Docker container with a specific Ruby version and gemfile: The BUNDLE GEMFILE environment variable is required. Ruby version defaults to 3.4 but can be customized: Performance benchmark The repository includes a performance benchmark. It runs against all available included st","default_branch":null,"files":null,"tree":[],"storefront":"/r/mongoid","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/mongoid/mongo_session_store/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}