Hi. Currently I''m developing a web application with users and sessions. I need avoid the users re-enter the password, something such as clear the redirect_to(:back) when log in is successful. Several sites use this system (Facebook, in example). I don''t know if I must clear the history (?), because when I use the ''back'' in the web browser the rails controller doesn''t interpose. I need your help. Thanks. -- 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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
Hi, You shouldn''t try to clear the browser history (you can''t). Instead, when someone visits the login page your controller should redirect to the home screen if that user is already logged in. Also, use authlogic and watch the railscast on how to use it. That should show you the right way. Hope this helps! Simon On Mar 6, 10:13 pm, Isaac Isccha <li...-fsXkhYbjdPsEEoCn2XhGlw@public.gmane.org> wrote:> Hi. Currently I''m developing a web application with users and sessions. > > I need avoid the users re-enter the password, something such as clear > the redirect_to(:back) when log in is successful. Several sites use this > system (Facebook, in example). I don''t know if I must clear the history > (?), because when I use the ''back'' in the web browser the rails > controller doesn''t interpose. > > I need your help. > > Thanks. > > -- > 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 rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
Simon Baumgartner wrote in post #985966:> Hi, > > You shouldn''t try to clear the browser history (you can''t). > Instead, when someone visits the login page your controller should > redirect to the home screen if that user is already logged in. > > Also, use authlogic and watch the railscast on how to use it. That > should show you the right way. > > Hope this helps! > SimonThanks for reply, Simon. -- 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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.