开发者

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

开发者 https://www.devze.com 2023-03-22 13:47 出处:网络
Any one know how to clear开发者_开发问答/null all user sessions in a RoR app during app 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

精彩评论

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