I'm creating a Rails 3 site that allows a company to update some of its web pages, and I've used AuthLogic to take care of logging users & out.
For most traffic to our site, we don't need to use any encryption because we're not transmitting sensitive information. However, while a user is logging in, I figure it's important to use encryption to keep their password safe. Also, from what I understand it's important to keep all traffic encrypted once a user is logged in (to avoid someone stealing their cookies and getting authenticated as them).
The stackoverflow question "Rails 3 SSL Deprecation" has some helpful advice on using SSL with Rails 3, but I'm trying to figure out how to encrypt all traffic once a user is logged in (or logging in, etc.) but no traffic when no user is presently logged in. I can't see how to do this kind of conditional routing.