Stop Devise from clearing session

前端 未结 4 1996
孤独总比滥情好
孤独总比滥情好 2020-12-01 12:47

It seems when a user logs out via standard Devise controllers, Devise destroys the entire session store, not just its own data. Is there any way to avoid this behavior? I ha

4条回答
  •  天涯浪人
    2020-12-01 12:55

    In the lasts versions of devise it is not necesary to override the sessions controller, instead you can just use:

    config.sign_out_all_scopes = false
    

    In the devise.rb file to get the desired behaviour.

提交回复
热议问题