Skip to content

How to : Skip Devise Session Timeout for Other controller actions

Sufinsha Musthafa edited this page Aug 5, 2016 · 4 revisions

In a scenario where the user need not be timed out when idle for more than the timeout period, Just add the code below to the controller for that action:

prepend_before_action only: [:action] { request.env["devise.skip_timeout"] = true }

Clone this wiki locally