title: Rails App with Devise Based Authentication on Multiple Servers - Sign in issue
body: <p>I am using the <a href="https://github.com/plataformatec/devise" rel="nofollow">Devise Gem</a> for authentication in my Rails app and it works fine.  So far we only had one server hosting the Rails application.  </p>
  
  <p>Now with AWS migration, we have two servers hosting the application.  The sign in process has broken and we cannot log in.  If we remove one server from the Load Balancer, it starts working again.  Adding the server back  breaks the login system.  </p>
  
  <p>We use ActiveRecord based authentication in a master-master configuration, viz. There are two DB servers in master-master mode that remain in sync.</p>