title: I need to show a warning pop-up while user tries to log-out, using Warden callback, Ruby on Rails?
body: <p>Warden::Manager.before_logout ?I have the following warden callback in config/initializers/devise.rb</p>
  
  <pre><code>Warden::Manager.before_logout do |user, auth, opts|
    auth.session[:signout] = true
   end
  </code></pre>
  
  <p>In my application controller I have this action, which is called by a before_filter</p>
  
  <pre><code>def user_logs_out
    if session[:signout]
      display_sign_out_popup = true
   end     
  end
  </code></pre>
  
  <p>Then using my java script, I am trying to a show modal pop-up. But apparently, session[:logout] is not becoming true at all. Can I not access session variables set by<br>
       Warden::Manager.before_logout                                    in application_controller.rb ?                                                                            </p>