Hello,
As per RFC 2109 every user agent needs to support
- 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
Given this understanding, cookies may not be a good idea to store such information. HTML5 offers an alternative in form of local storage which generally has a recommended storage limit of 5MB per origin.
As far as managing cookies on server side you can use the code similar to one shown below.
if (Request.Cookies["SearchPhrases"] != null) {
string strVal = Request.Cookies["SearchPhrases"]["textBox1"].Value;
}
Request.Cookies["SearchPhrases"]["textBox1"].Value = strNewValue
Regards,