Are you writing Chinese into the cookie?Each cookie returns a list of name/value pairs. A cookie may contain up to 20 pairs. A domain has 4000 character limit. with IE, you can use #default#userData behavior to store more data, it can store 640k-1M data
没错,MS在IE5后提供了#default#userData behavior 在客户端存储更多的数据,但安全性比较差,其数据变成xml后被保存在Documents and Settings\用户名\Application Data\Microsoft\Internet Explorer\UserData(以Windows 2000为例,Win98的路径稍有不同)中。下边是它在不同安全级别下的存储容量Security Zone Document Limit (KB) Domain Limit (KB) Local Machine 128 1024 Intranet 512 10240 Trusted Sites 128 1024 Internet 128 1024 Restricted 64 640 详细文档可参见 http://msdn.microsoft.com/workshop/author/behaviors/reference/behaviors/userdata.asp?frame=true
Local Machine 128 1024
Intranet 512 10240
Trusted Sites 128 1024
Internet 128 1024
Restricted 64 640
详细文档可参见
http://msdn.microsoft.com/workshop/author/behaviors/reference/behaviors/userdata.asp?frame=true
有目录限制。
------------
如果USERDATA也能想COOKIE一样,可以设PATH多好。