title: How to get Devise session timeout callback?
body: <p>Is there a way to get a callback/ process some action when a user's session times out with Devise?</p>
  
  <p>The plain old overriding the DeviseSessionsController doesn't work:</p>
  
  <pre><code>class SessionsController &lt; Devise::SessionsController
  
    def destroy
      #do something
      super
    end
  
  end
  </code></pre>
  
  <p>This only works when a user logs out, which makes sense since it doesn't seem like a controller is called on session timeout. Can someone help me out?</p>