    # File lib/action_controller/session_management.rb, line 69
          def session(*args)
            options = Hash === args.last ? args.pop : {}

            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