简体   繁体   中英

Rails Mongoid - Store sessions

Is there any way to store rails sessions in the database using Mongoid(MongoDB)? I have seen a couple of gems but they are about 1 ~ 2 years old.

I'm not sure whether those gems are necessary (eg really complex task) to use sessions with mongo, or is there some 'hack' I can do to make it work. Thanks!

Try this mongo_sessions . Still in active use/development according to the commits.

For mongo_sessions you may need to point your Gemfile to the git repo as explained here . If that still doesn't work, you can try mongo_session_store-rails3 .

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM