How can I check in Rails controller if InvalidAuthenticityToken error was raised from session expiry?

前端 未结 0 519
忘了有多久
忘了有多久 2021-01-20 06:54

I would like to be able to rescue this error and do stuff in some specific controllers, only if it was raised because of session expiry (set to 24h in session_store.rb

相关标签:
回答
  • 消灭零回复
提交回复
热议问题