Peter Alvin
2008-Dec-13 17:55 UTC
Capture session end of life routine? def session_has_ended?
Does RoR define a routine that runs _guaranteed_ when a session ends to write out session info to database, etc.? Pete -- Posted via http://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 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 -~----------~----~----~----~------~----~------~--~---
Jeremy Weiskotten
2008-Dec-14 20:40 UTC
Re: Capture session end of life routine? def session_has_ended?
Peter Alvin wrote:> Does RoR define a routine that runs _guaranteed_ when a session ends to > write out session info to database, etc.? > > PeteNot really, because sessions don''t just end on their own. You can handle the explicit logout case yourself pretty easily. If you want sessions to expire (after a period of inactivity) you''ll need to build something to do that (like a rake task set up as a cron job) and you can persist session state as part of that process. -- Posted via http://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 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 -~----------~----~----~----~------~----~------~--~---