We currently run identical code on three Rails environments:
staging.oururl.com sandbox.oururl.com and www.oururl.com and have the
f**ing craziest problem:
Users with IE, intermittengly, cannot login to the Rails apps that have
subdomains! Users with FF have no problem and both browsers have no
problem with www.oururl.com.
We’ve gone so far as to switch the databases from sandbox.oururl.com
and www.oururl.com with the exact same results.
Our environment: Apache 2.2/mongrel 0.3.13.3/cluster 0.2 on Rimuhost
and control code posted below.
Any help or a push in the right direction appreciated.
Thanks, Brittain
Cross posted to mongrel list.
===
def login
#logger.debug(“login(#{cookies[:remember_me]})”)
@remember_me = cookies[:remember_me]
@email = (@remember_me ? cookies[:remembered_email] : nil)
return unless request.post?
self.current_user = User.authenticate(params[:email],
params[:password])
if current_user
cookies[:remember_me] = {:value => params[:remember_me], :expires
=> Time.now + 60.days}
cookies[:remembered_email] = {:value => (params[:remember_me] ?
params[:email] : nil), :expires => Time.now + 60.days}
flash[:notice] = "Logged in successfully"
redirect_back_or_default(last_pin)
else
flash[:notice] = "Invalid e-mail or password information"
end
end