拜托!cookie是用来记录用户在你站点的状态的,你需要记录什么东西竟然要超过2k?

解决方案 »

  1.   

    上帝你以为 cookie 是什么,都是什么变量非得用 cookie 来记?
      

  2.   

    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
      

  3.   

    没错,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
      

  4.   

    640k的cookiehttp://go6.163.com/colorweb/xml/index.html
      

  5.   

    userdata不好啦。
    有目录限制。
    ------------
    如果USERDATA也能想COOKIE一样,可以设PATH多好。
      

  6.   

    http://msdn.microsoft.com/workshop/author/behaviors/reference/behaviors/userdata.asp?frame=true