If I have:

class ApplicationController < ActionController::Base
  protect_from_forgery
  before_filter RubyCAS::Filter
  before_filter :fetch_operator
  include SessionsHelper

  private

  def fetch_operator
    @operator ||= session[:cas_user] && Operator.find_by_uid(session[:cas_user])
    log_out if @operator.nil?
  end

end

@operator is available for all controllers of my application.
But If I run, for example, two instances of my application from
different locations.
In the first instance the user logs in as 'user1', later from another
location, another user logs in as 'user2', then in @operator now I
have 'user2'.
How can I do if my application is used by more than one user?

-- 
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en.

Reply via email to