Any one know how to clear开发者_开发问答/null all user sessions in a RoR app during app start up?
Thanks in advance.
Raf
If you are using :active_record_store you can drop the sessions table or just point to a new table by configuring this
ActiveRecord::SessionStore::Session.table_name = 'legacy_session_table'
If you are using file store, you need to clear the file.
精彩评论