
Security News
Follow-up and Clarification on Recent Malicious Ruby Gems Campaign
A clarification on our recent research investigating 60 malicious Ruby gems.
= mongo_sessions
MongoDB Session store for Rails 3 and Rack applications
Uses the ruby Mongo driver to store sessions in a MongoDB collection.
= When Using in Rails 3 Applications
To use the session store in rails (In this example with Mongoid) add the rails store to your Gemfile:
gem "mongo_sessions", :require => "mongo_sessions/rails_mongo_store"
And change config/application.rb to something like:
config.session_store :mongo_store, :key => '_my_session', :collection => lambda { Mongoid.master.collection('sessions') }
= When Using in Rack Applications
Add the gem to your Gemfile:
gem "mongo_sessions", :require => "mongo_sessions/rack_mongo_store"
If you are not using Bundler.require:
require "mongo_sessions/rack_mongo_store"
Add the Rack Middleware to your app:
use Rack::Session::MongoStore
== Note on Patches/Pull Requests
== Copyright
Copyright (c) 2010 Mathias Biilmann. See LICENSE for details.
FAQs
Unknown package
We found that mongo_sessions demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
A clarification on our recent research investigating 60 malicious Ruby gems.
Security News
ESLint now supports parallel linting with a new --concurrency flag, delivering major speed gains and closing a 10-year-old feature request.
Research
/Security News
A malicious Go module posing as an SSH brute forcer exfiltrates stolen credentials to a Telegram bot controlled by a Russian-speaking threat actor.