On Oct 28, 9:27 pm, Shandy Nantz <[EMAIL PROTECTED]>
wrote:
> The idea being that if too much time has passed the user gets signed out
> and get kicked back to the login page. Everything work right, except the
> bit of code that check to see if an hour has passed since the users last
> action and then it is supposed to redirect_to a login form. The problem
> is that when it gets to that redirect_to it seems to skip right over it
> and not do anything, even worse, it allows the user to continue to be
> logged in. Has anyone used peroidically_call_remote before and has
> similar issues and how did you fix them? Thanks,

This has nothing to do with periodically_call_remote and everything to
do with it being an ajax request.
If you want to redirect from an ajax request you need to use rjs (ie
remove the update option from periodically_call_remote) and use
page.redirect_to from the rjs

Fred
>
> -S
> --
> Posted viahttp://www.ruby-forum.com/.
--~--~---------~--~----~------------~-------~--~----~
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 [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to