spec/test_apps/rails-2-3/app/controllers/application_controller/security_trait.rb
def sign_in(user)
      if user
        cookies[:remember_token] = {
          :value   => user.remember_token,
          :expires => 1.hour.from_now.utc
        }
        self.current_user = user
      end
    end
# Override Clearance method so sessions time out after 1 hour 
Override Clearance method so sessions time out after 1 hour
Override Clearance method so sessions time out after 1 hour
def sign_in(user)
      if user
        cookies[:remember_token] = {
          :value   => user.remember_token,
          :expires => 1.hour.from_now.utc
        }
        self.current_user = user
      end
    end
def sign_in ( user ) if user cookies [ :remember_token ] = { :value => user . remember_token , :expires => 1 . hour . from_now . utc } self . current_user = user end end
Override Clearance method so sessions time out after 1 hour
Override Clearance method so sessions time out after 1 hour
user