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

  • SEARCH
  • Home
  • 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 7011489
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T22:08:02+00:00 2026-05-27T22:08:02+00:00

When users log into our site we retrieve an object from our database that

  • 0

When users log into our site we retrieve an object from our database that contains various settings that are used throughout the site. In order to reduce server load from going back to our database each time the user interacts with our site, we are trying to think of alternative ways. (We serialize and de-serialize the object, when needed). The object is likely to be <1MB but could vary.

  1. How big of an object can we have in a session without significantly affecting performance?
  2. How big of an object can we store in a cookie?
  3. Are there any other alternatives (other, than, retrieving the data from our DB)?
  • 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-27T22:08:02+00:00Added an answer on May 27, 2026 at 10:08 pm

    The maximum allowed cookie size depends on the client. For example, a MSDN article from 2005 says that the whole cookie may have at least 4096 bytes available (including expiry date etc). The RFC mentioned in the same article contains some more information regarding limitations:

    6.3 Implementation Limits

    Practical user agent implementations have limits on the number and
    size of cookies that they can store. In general, user agents’ cookie
    support should have no fixed limits. They should strive to store as
    many frequently-used cookies as possible. Furthermore, general-use
    user agents should provide each of the following minimum capabilities
    individually, although not necessarily simultaneously:

    • at least 300 cookies

    • at least 4096 bytes per cookie (as measured by the size of the
      characters that comprise the cookie non-terminal in the syntax
      description of the Set-Cookie header)

    • at least 20 cookies per unique host or domain name

    If your session data is not valuable (as in “shouldn’t be lost in case of e.g. a reboot”), consider storing it in memcached. This is pretty fast and avoids accessing the DB just to get session data. You might actually want to consider using a mix of both: You could create a small cookie containing the session id and login information. Then a loss of your server-side sessions would not result in users being logged out so the impact would be pretty low.

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

Sidebar

Related Questions

Our users log into the production database as a fairly low-level user, with SELECT
I have a internal website that users log into. This data is saved as
I've been having trouble getting my ASP.NET application to automatically log users into the
<fb:login-button onlogin=window.location = '/custompage.html';>Connect</fb:login-button> That's currently my code for users to log in to
I have a WPF form that uses ClientLogin to log a user into their
Our iOS app has a Web View that is rendering pages from file: URLs.
We have a tech support website/database at work that we use to record our
I'm developing a Mac App in Java that logs into any one of our
Our website has school info; when users login to our site with Facebook, we'd
Our website runs on ASP.NET v4 and users log in user Forms authentication. We

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.