method

check_for_overflow!

check_for_overflow!(name, options)
private

No documentation available.

# File actionpack/lib/action_dispatch/middleware/cookies.rb, line 612
        def check_for_overflow!(name, options)
          total_size = name.to_s.bytesize + options[:value].bytesize

          if total_size > MAX_COOKIE_SIZE
            raise CookieOverflow, "#{name} cookie overflowed with size #{total_size} bytes"
          end
        end