"authlogic-2.0.13" giving problem for login on production

Hi,
I am using “authlogic-2.0.13” for user authentication.
It is working fine on my development machine, but on production it is
not working.

I have written a code like this in “user_session_controller.rb”:-

def create
@user_session = UserSession.new(params[:user_session])
if @user_session.save
flash[:notice] = “Login successful!”
redirect_back_or_default account_url
else
render :action => :new
end
end

It is not able to save the use session and due to that it is not
allowing user to log in.
Can anyone tell me How to get rid of this problem?
It is very urgent, as it is on production.

Thanks,
Tushar