开发者

how to clear all user sessions in a RoR app in start up?

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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜