Saturday, March 04, 2006

Remember me

I finally added something I've been meaning to add for a long time: persistent logins. If you check the "Remember me?" checkbox when you're logging in, you never have to log in again from that computer. Since most people never change userids, this is a real benefit. Pain-in-the-neck to code and test though, since there are lots of cases and you have to shut the browser down to test each one.

For anyone else who wants to do this in Ruby on Rails, I found these instructions invaluable. He just modifies the standard authentication module which was exactly what I wanted. The only problem was that his method only allows you to be logged on from one computer at a time. Since I use sites from work and home constantly, that was no good. So I used the concepts described in this best-practices document to fix that.

Comments: Post a Comment



<< Home

This page is powered by Blogger. Isn't yours?