Hi
Hoping someone has had experience with this or can tell me where to
start investigating.
I’ve got a Rails app with Devise authentication running on a server
cluster behind a load balancer, so requests to the website will
alternately hit one server, or the other. My problem occurs when I try
to register a new user. Everything goes fine, I get the confirmation
email, I click the link, it hits the confirmation page and then goes
directly to the sign in page, instead of proceeding to the
user_root_path. The account IS marked as confirmed in the database
though. I thought perhaps the default CookieStore for sessions was
causing problems, so I tried the ActiveRecord store, with the same
results.
When I try the exact same app/code on my local machine, or on the
cluster with only one of the servers active, it works perfectly.
Anyone have any ideas on this, or where to start looking for the
problem? When I check, the session is created in the DB, and I have a
matching session cookie in the browser, but somehow the confirmation
process just doesn’t seem to log me in.
Thanks for help in advance.