[Ruby on Rails] ActionDispatch::Cookies::CookieOverflow error

Tadashi Shigeoka ·  Wed, March 27, 2013

In Ruby on Rails, when I stuffed a large amount of strings into flash, an ActionDispatch::Cookies::CookieOverflow error occurred.

Raised when storing more than 4K of session data.

ActionDispatch::Cookies::CookieOverflow

The solution is to replace sessions with ActiveRecord, Redis, or similar instead of using Cookies.

Ruby on Rails ActionDispatch::Cookies::CookieOverflow error - WILT

That’s all from the Gemba.