Session_timeout and link_to_remote conflict

Hi,

I have a membership rails application and I used session_timeout
plugin to allow accounts
to automatically logout after a period of time (15 minutes)

In some screen I have a div container which is updated with
link_to_remote function.

If the application is idle 15 minutes, and I’ll try to press the
link_to_remote, the login page it will be loaded in the div, not as
parent page.

How can I resolve this ?

Thanks

Quoth [email protected] ([email protected]):

If the application is idle 15 minutes, and I’ll try to press the
link_to_remote, the login page it will be loaded in the div, not as
parent page.

How can I resolve this ?

I had a similar problem. I resolved it in the authentication code
which renders the login page:

if request.xhr?
# redirect to auth page
else
# render auth template
end

Ken

I use the words you taught me. If they don’t mean anything any more,
teach me others. Or let me be silent.
Samuel Beckett (Clov, Endgame)

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs