Skip to main content
Ask A Question
You’re not receiving notifications from this thread.

ActionDispatch::Cookies:CookieOverflow in controller

Rails • Asked by Sai

I am getting error while accessing rails application, which was working fine earlier,
"raise CookieOverflow if options[:value].bytesize > MAX_COOKIE_SIZE"

Could some one help.

Hey Sai,

Your browser has a maximum size of storage for cookies, so Rails protects you from sending too much data to the browser.

You should probably look at what you're storing in the cookies and change it to save to the database and store the database record ID in the cookie instead.

Login or Create An Account to join the conversation.

Subscribe to the newsletter

Join 30,242+ developers who get early access to new screencasts, articles, guides, updates, and more.

    By clicking this button, you agree to the GoRails Terms of Service and Privacy Policy.

    More of a social being? We're also on Twitter and YouTube.