q about authlogic

hi, this is part of the standard UserSession Code:

def create @user_session = UserSession.new(params[:user_session]) @user_session.save do |result| if result flash[:notice] = “Successfully logged in.”

p “----------A-------------------” p @user_session.inspect

p “-----------B------------------” p current_user.inspect

… LOG B: “nil”

but, i do have this in the app-controller: def current_user_session return @current_user_session if defined?(@current_user_session) @current_user_session = UserSession.find end

def current_user
  return @current_user if defined?(@current_user)
  @current_user = current_user_session && current_user_session.record
end

so , why cant i access current_user- record (in A)?

thx