Please help! I ran into a problem that session[:user_id] seems lost.
The session[:user_id] is set during user’s login. Other pages have
“before_filter :login_required”. The method “login_required” is
defined in ApplicationController to check if session[:user_id] exists.
However, after user logs in successfully (I can see the printed
user_id), and when bringing other pages which call login_required, the
session[:user_id] becomes empty.
I am using rails 1.2.2 and gem version is also 1.2.2.
active_record_store is used for session storage.
Can anyone shed some light on this problem?
Thanks a lot!