> > I'm pretty new in rails so I've been "playing" programming simple app > > one of the was an app with a login and session management. Up to here, > > everything is pretty smooth, as rails; but I have a question that I > > can solve, that's why I'm writing to the group. Is there a way to > > catch the browser close event? I want it to end the users session, > > because if the user close the browser and try to sign in, I get the > > "user already logged" message.
If the user is already logged in, why not have the session controller redirect them to an appropriate page? Also, If you want the user's session to end when the browser is closed, just use a session cookie. SH --~--~---------~--~----~------------~-------~--~----~ 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@googlegroups.com To unsubscribe from this group, send email to rubyonrails-talk+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---