ciocan-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org
2007-May-02 10:08 UTC
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 --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
Quoth ciocan-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org (ciocan-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org):> > 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 ? >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) --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---