Hello all,
There seems to be a bug in internet explorer 5 where a redirect
causes the session to be lost.
A controller says…
def login
case @request.method
when :post
if @session[:user] = User.authenticate(@params
[:user_login], @params[:user_password])
return redirect_to(:action=>‘send_confirmation’) unless
@session[:user].confirmed?
flash[:notice] = "Welcome back, " + @session
[:user].display_name
redirect_back_or_default “/”
else
flash.now[:notice] = “Sorry, we couldn’t log you in
with that information. Please check your details and try again.”
@login = @params[:user_login]
end
end
end
And it works fine with all browsers but MSIE 5.5sp2 where the user IS
logged in but on arrival at the redirect page the session is lost.
You can see this bug in action if you try to use the wretched browser
to log into a tadalist (for example).
Can anyone suggest a work around to allow 5.5 users to keep workable
sessions with a Rails app?
Thanks,
Gavin