Project

General

Profile

Defect #9999 » fix_double_open_session.diff

Jérôme BATAILLE, 2012-01-16 12:12

View differences:

app/controllers/application_controller.rb (révision 250)
89 89

  
90 90
  # Sets the logged in user
91 91
  def logged_user=(user)
92
    reset_session
92
    if session.any?
93
      reset_session
94
    end
93 95
    if user && user.is_a?(User)
94 96
      User.current = user
95 97
      session[:user_id] = user.id
    (1-1/1)