method

check_for_overflow!

Importance_0
v8.1.1 - Show latest stable - 0 notes - Class: SerializedCookieJars
check_for_overflow!(name, options) private

No documentation

This method has no description. You can help the Ruby on Rails community by adding new notes.

Hide source
# 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
Register or log in to add new notes.