    # File lib/action_controller/session_management.rb, line 78
          def session(*args)
            options = args.extract_options!

            options[:disabled] = false if args.delete(:on)
            options[:disabled] = true if !args.empty?
            options[:only] = [*options[:only]].map { |o| o.to_s } if options[:only]
            options[:except] = [*options[:except]].map { |o| o.to_s } if options[:except]
            if options[:only] && options[:except]
              raise ArgumentError, "only one of either :only or :except are allowed"
            end

            write_inheritable_array("session_options", [options])
          end