I've managed to fix this now. The problem was to do with the domain name
containing an underscore '_'.
An IE bug?
Nick Linnell wrote:
I've got an issue with session variables being lost in internet explorer. I
have build a login system using the example used in Athentication
(http://wiki.rubyonrails.com/rails/pages/Authentication) in the
rubyonrails wki. It works fine in Firefox but in IE my session variable is
If I check the value of @session["user"] after it is set in the login
controller it has a value but in the next page the variable is empty
Am i doing something wrong?
my code is as follows:
if details = User.authenticate(@params[:login]["username"],
@session["user"] = details
if @session["user"]["user_level"] == 1
redirect_to :controller => 'apps', :action => 'list'
redirect_to :controller => 'bugs', :action => 'list'
flash["notice"] = "Login failed"
redirect_to :action => 'index'
redirect_to :controller => 'login'