<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>潜心于现在，未来 &#187; Firefox</title>
	<atom:link href="http://blog.yamone.com/tag/firefox/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.yamone.com</link>
	<description>率性之谓道</description>
	<lastBuildDate>Fri, 07 May 2010 14:12:12 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>主流浏览器的cookie限制</title>
		<link>http://blog.yamone.com/tech-blog/browser-cookie-restrictions/</link>
		<comments>http://blog.yamone.com/tech-blog/browser-cookie-restrictions/#comments</comments>
		<pubDate>Sat, 20 Jun 2009 03:51:09 +0000</pubDate>
		<dc:creator>Amom</dc:creator>
				<category><![CDATA[技术网志]]></category>
		<category><![CDATA[browser]]></category>
		<category><![CDATA[cookie]]></category>
		<category><![CDATA[Firefox]]></category>
		<category><![CDATA[IE]]></category>

		<guid isPermaLink="false">http://blog.yamone.com/?p=68</guid>
		<description><![CDATA[最近分析网站的UV，发现使用Google Analytics的UV要比我们自己的统计的多，估计原因就是GA的cookie可能会被挤掉。去年开发JT2的时候QA同事就发现在my系统经常自动退出，而且JT的cookie也经常丢失。后来发现是因为在Javascript中统一使用主域后，cookie大小超出了限制导致，一些cookie被挤掉。 下面是从Nicholas的Browser cookie restrictions摘要的主流浏览器的cookie限制，这哥们是Yahoo的前端工程师，参与了YUI的开发。 浏览器 允许的最多cookie数 cookie大小 清除原则 IE IE8支持最多50个 IE7最多20个，安装一个系统更新后支持50个 4095字节, 包括：名（name）、值（value）和等号。 Least Recently Used（LRU），当cookie达到限额，自动清除最旧的cookie Firefox 50个 4097字节, 包括：名（name）、值（value）和等号。 最新的保留，但是随机决定清除其它较旧的cookie Opera 30个 4096字节，包括：名（name）、值（value）和等号。 同IE Safari/WebKit 无限制 4097字节, 包括：名（name）、值（value）和等号。]]></description>
			<content:encoded><![CDATA[<p>最近分析网站的UV，发现使用Google Analytics的UV要比我们自己的统计的多，估计原因就是GA的cookie可能会被挤掉。去年开发JT2的时候QA同事就发现在my系统经常自动退出，而且JT的cookie也经常丢失。后来发现是因为在Javascript中统一使用主域后，cookie大小超出了限制导致，一些cookie被挤掉。</p>
<p>下面是从Nicholas的<a title="Browser cookie restrictions" href="http://www.nczonline.net/blog/2008/05/17/browser-cookie-restrictions/">Browser cookie restrictions</a>摘要的主流浏览器的cookie限制，这哥们是Yahoo的前端工程师，参与了YUI的开发。</p>
<table border="1" cellspacing="0" cellpadding="2" width="497">
<tbody>
<tr>
<td width="77" valign="top">浏览器</td>
<td width="121" valign="top">允许的最多cookie数</td>
<td width="163" valign="top">cookie大小</td>
<td width="134" valign="top">清除原则</td>
</tr>
<tr>
<td width="77" valign="top">IE</td>
<td width="121" valign="top">IE8支持最多50个</p>
<p>IE7最多20个，安装一个系统更新后支持50个</td>
<td width="163" valign="top">4095字节, 包括：名（name）、值（value）和等号。</td>
<td width="134" valign="top">Least Recently Used（LRU），当cookie达到限额，自动清除最旧的cookie</td>
</tr>
<tr>
<td width="77" valign="top">Firefox</td>
<td width="121" valign="top">50个</td>
<td width="163" valign="top">4097字节, 包括：名（name）、值（value）和等号。</td>
<td width="134" valign="top">最新的保留，但是随机决定清除其它较旧的cookie</td>
</tr>
<tr>
<td width="77" valign="top">Opera</td>
<td width="121" valign="top">30个</td>
<td width="163" valign="top">4096字节，包括：名（name）、值（value）和等号。</td>
<td width="134" valign="top">同IE</td>
</tr>
<tr>
<td width="77" valign="top">Safari/WebKit</td>
<td width="121" valign="top">无限制</td>
<td width="163" valign="top">4097字节, 包括：名（name）、值（value）和等号。</td>
<td width="134" valign="top"></td>
</tr>
</tbody>
</table>
]]></content:encoded>
			<wfw:commentRss>http://blog.yamone.com/tech-blog/browser-cookie-restrictions/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

