# "authlogic-2.0.13" giving problem for login on production

**URL:** <https://www.ruby-forum.com/t/authlogic-2-0-13-giving-problem-for-login-on-production/180277>\
**Category:** Rails\
**Created:** [December 16, 2009, 11:42am UTC](https://www.ruby-forum.com/t/authlogic-2-0-13-giving-problem-for-login-on-production/180277 "2009-12-16T11:42:31Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![gandhi-tush](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/g/5daacb/32.png) [@gandhi-tush](https://www.ruby-forum.com/u/gandhi-tush)\
**Post date:** [December 16, 2009, 11:42am UTC](https://www.ruby-forum.com/t/authlogic-2-0-13-giving-problem-for-login-on-production/180277/1 "2009-12-16T11:42:31Z")

</div>

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
