Daniel Stenberg
recently posted some interesting test code and browser results to http-state@ietf.org describing the maximum amount of data that can be stored in a cookie:****
... I just went ahead and wrote a CGI script that redirects to itself and grows a
Here's a few results from various browsers:
Firefox 3.0.12: 4000
I think we can safely say that most browsers support at least 4000 characters
[*] = this reports "500 Internal Server Error" on 8000, which I don't
The test is live here: http://daniel.haxx.se/test/longcookie.cgi Feel free to
And the perl script that runs it looks like this:
require "CGI.pm";
$len = CGI::param('len');
print "Content-Type: text/html\n";
if($len == length($c)) {
print "Location: longcookie.cgi?len=$len\n";
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.3