I have before_filters set up doing authentication. In my
before_filters, I have some code that expires idle sessions when a
controller action happens, and when it meets the idle criteria i do
a :redirect to the login page.
However, I have run into the strange situation where when an ajax call
is performed when the session goes idle, the :redirect to the login
page doesn’t work. In the log, it shows the redirection taking place,
but nothing is displayed on the screen.
The business logic works when a non-ajax call is invoked when the
session goes idle. Any idea of why a redirect isn’t possible here???
thx in advance.