Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 4612008
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 22, 20262026-05-22T01:20:44+00:00 2026-05-22T01:20:44+00:00

without posting my exact problem with a Cookieoverflow, I want to ask, what can

  • 0

without posting my exact problem with a Cookieoverflow, I want to ask, what can cause a CookieOverflow?

I have only one session-var session[:user] = @user, which is the current logged in account.

In my whole app I have no problems with a CookieOverflow, but in one action, where I am not using the session- or cookies-var, I get a CookieOverflow.

So without inspecting my problem in detail, what can cause a CookieOverflow as well, when it is not the false use of session[] and cookies[]?

I really don’t think that this session-var for the user is really the problem… I commented it out and still get the error.

So the question is exactly, “In what cases does Rails use cookies, without my explicit call of it? / When does Rails use cookies, wihtout letting me know of it?”

Yours,

Joern

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-22T01:20:44+00:00Added an answer on May 22, 2026 at 1:20 am

    @user is an instance of a User model, I assume?

    A quick google search suggests storing models in cookies is a bad idea:
    http://www.quarkruby.com/2007/10/21/sessions-and-cookies-in-ruby-on-rails#slimitations

    The session cookie size is pretty small (~4kb), could it be that the @user instance is bigger than that? Perhaps you could just store @user.id in the session?

    Also, the error may appear when you are making changes to the object referenced by @user elsewhere in the model; if the session cookie is tracking this object, then that could push it over the 4kb limit.

    Just some thoughts – happy to be corrected by Those Of Great Reputation.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I want to silently check for Session existence without Posting back page by using
I'm missing something obvious I'm sure. Hoping I can explain the problem without posting
Hi I have a comment posting function where public user can link and display
(I've tried posting this on YUI message group but without any luck) Can anyone
I want to do a file upload without posting an entire form. The file
Is there anyway I can get the value of a text field without posting
Can you solve this without throwing an error? The answer is a one-liner. This
Without routing, HttpContext.Current.Session is there so I know that the StateServer is working. When
I have a CFINPUT tag in a CFFORM . I want to set the
I have a web form and want to 'get' it to another page.. is

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.