views:

34

answers:

0

I am using the active record store to keep sessions in the database. Is there anyway to get the user_id from the session stored in the database? In my application im adding the user_id to a session when a user logs in using session[:user_id] = @user.id. Does doing this also update the session in the database with :user_id?. Thanks for anyones help