Or do you want to periodically make an AJAX call to check if the user
is still logged in?  If that is the case you could use the Prototype
PeriodicalExecuter method to call the server and verify that the user
is still logged in.  I assume you have some server side sweep that
logs out old sessions.  Combined with the periodic AJAX call, the user
would be notified that they were logged out or even better give them
an update that they are about to be logged out!

On Apr 24, 8:12 am, Rémi Gagnon <[email protected]>
wrote:
> Hello,
>
> I'm looking for a recipe to handle session logged out or expired in an
> ajax calls.  For instance, lets say we have a form submission in ajax
> that the user needs to be authenticated to perform this action.  I'd
> like to at least notice the user that he is not logged in anymore or
> even better prompt an authentication form.
>
> Any suggestions?
>
> Rémi
> --
> 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