views:

17

answers:

0

I use Authlogic to log the user in. Inside a Rails Metal I want to check if the user is logged in or not. Just that, I don't care who the user is. I want to avoid touching the database so I should not do UserSession.find.

My main doubts: Will making use of env['rack.session'] solve that? Where is that stored? Is that secure? I'm currently using ActiveRecord store for sessions. Will that mean that using env['rack.session'] will query the db or am I querying every single time because of my session store?