Tuesday, December 7, 2010

authlogic current user is nill

when using authlogic for basic user authentication and authlogic-connect for facebook,twitter etc integration every thing work in local system.but in production and staging current user is not set current user is null.

solution:
"allow_http_basic_auth false" give this inside you user_session model.
class UserSession < Authlogic::Session::Base allow_http_basic_auth falseend

1 comment: