Class: SessionTimeoutPrompter::SessionsController

Inherits:
ActionController::Base
  • Object
show all
Defined in:
app/controllers/session_timeout_prompter/sessions_controller.rb

Instance Method Summary collapse

Instance Method Details

#newObject

We arrive here when clicking “Log in again” Note: Due to inherent inaccuracies in javascript timing it is a good idea to override this in your app and destroy the user session to make sure they are actually logged out as this may cause confusion.



8
9
10
# File 'app/controllers/session_timeout_prompter/sessions_controller.rb', line 8

def new
  redirect_to main_app.root_path
end