In rails 2.3, I changed session store from cookies to active_record.
I compared session.inspect between the two stores.
In cookie_store, it showed a lot of info but in active_record_store it showed nothing(just {}).
My main concert is session_id. You can’t get session[:session_id] in active_record_store. Is this right behavior? Do I have to see session differently according to session store option?
Sam
Why are you trying to get access to session_id? You should treat the session as a hash that Rails creates for you. So for instance, if you did:
In a subsequent action you would be able to do:
In other words, the session is a Hash that persists across requests.