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 6576001
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T15:27:24+00:00 2026-05-25T15:27:24+00:00

I have to store, in 2 cookie dictionary/keyed cookie, a user’s preference for hiding

  • 0

I have to store, in 2 cookie dictionary/keyed cookie, a user’s preference for hiding certain sections of each form on the app.

It would appear that IE7 has reached some limit for the number or size of the cookie in javascript.

I mean that the cookies are only inaccessible on the client-side js, but can be read just fine in our asp.net/vb code-behind.

The functions that need to read the value of these cookies must be on client side because I can’t run a postback everytime the function needs to update the cookie.

How should I go about getting and setting the cookie without triggering postback? I thought about storing the value of the cookie onload in a textbox, but I don’t know when I would read it back and update the cookie.

  • 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-25T15:27:24+00:00Added an answer on May 25, 2026 at 3:27 pm

    Replacing answer because the previous one didn’t apply and the comments were getting prettly long.

    You are limited to a grand total of 4KB of cookie data per domain depending on browser.

    RFC states that browsers need to support at least 20 cookies (IE does 50), and they need to support at least 4KB.

    However, the sad truth is that most browsers took the 4KB to be the upper bound. So for an application that might be used “in the wild”, the sum total of all the data across those cookies should not exceed 4KB.

    Also, 4KB is apparently subjective as some browsers took this to mean 4095 bytes. Odd one that.

    Anyway, current versions of Chrome and Firefox do not have this upper boundary. IE 9 caps at 10,234 bytes per domain, 5,117 per cookie (another odd number); however, Opera and Safari are still in the old days. Then again, if you are testing older versions of IE, Firefox or even Chrome then you’ll run into the 4KB limit as well.

    Personally, I think that if your cookies are greater than 4KB then you probably have some design issues as you are now putting more pressure on the tiniest connection you have: between the browser and your server. If you need more data than that then you might want to set up a local caching server, embed the data in the page or, at the very least, reconsider what you are using cookies for.

    An interesting link: http://browsercookielimits.x64.me

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

Sidebar

Related Questions

I have a single user java program that I would like to have store
Ok Soo I have 3 Sites. All need to store a cookie that each
I have a Rails app with devise integrated. I'm using the Cookie Store session.
If I have many settings that I want to store in a cookie, should
Suppose that you have to set 12 cookies, would it be better to store
I have to store blog style comments in a database. Each comment can have
I'm about to create a user based website and will have to store photo,
I have a fairly simple web app that uses cookies to store some information
So here is the situation - I have a store app that I want
I want to store a cookie using something like Response.Cookies.Set(new HttpCookie(name,value); after I have

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.