Rails shared sessions with activerecord

后端 未结 4 1837
时光取名叫无心
时光取名叫无心 2020-12-29 16:26

I\'m currently using the default cookies as my single sign on (SSO) but some users are getting strange errors after I push an update. I\'m considering moving to active recor

4条回答
  •  不思量自难忘°
    2020-12-29 17:04

    In rails 2.3

    open config/initializers/session_store.rb

    uncomment the line ActionController::Base.session_store = :active_record_store

    change the key's value on the line which looks like :key => '_YOUR_APP_NAME_session'

    then restart your server.

    The result will change your store, and invalidate all old cookies

提交回复
热议问题