<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	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/"
		>
<channel>
	<title>Comments on: Quick and Dirty Browser Cookie Testing</title>
	<atom:link href="http://www.dennmart.com/2008/09/30/quick-and-dirty-browser-cookie-testing/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.dennmart.com/2008/09/30/quick-and-dirty-browser-cookie-testing/</link>
	<description>Official Blog of Dennis Martinez</description>
	<lastBuildDate>Tue, 07 Dec 2010 23:45:41 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
	<item>
		<title>By: Stan Wiechers</title>
		<link>http://www.dennmart.com/2008/09/30/quick-and-dirty-browser-cookie-testing/comment-page-1/#comment-918</link>
		<dc:creator>Stan Wiechers</dc:creator>
		<pubDate>Fri, 19 Mar 2010 05:18:23 +0000</pubDate>
		<guid isPermaLink="false">http://www.dennmart.com/?p=97#comment-918</guid>
		<description>good idea!</description>
		<content:encoded><![CDATA[<p>good idea!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: max191</title>
		<link>http://www.dennmart.com/2008/09/30/quick-and-dirty-browser-cookie-testing/comment-page-1/#comment-894</link>
		<dc:creator>max191</dc:creator>
		<pubDate>Thu, 08 Oct 2009 15:53:44 +0000</pubDate>
		<guid isPermaLink="false">http://www.dennmart.com/?p=97#comment-894</guid>
		<description>Loved to read your blog. I would like to suggest you that traffic show most people read blogs on Mondays. So it should encourage bloggers to write new write ups over the weekend primarily.&lt;br&gt;regards&lt;br&gt;&lt;a rel=&quot;dofollow&quot; href=&quot;http://www.charcoalgrillsite.com&quot; rel=&quot;nofollow&quot;&gt;charcoal grill&lt;/a&gt;</description>
		<content:encoded><![CDATA[<p>Loved to read your blog. I would like to suggest you that traffic show most people read blogs on Mondays. So it should encourage bloggers to write new write ups over the weekend primarily.<br />regards<br /><a rel="dofollow" href="http://www.charcoalgrillsite.com" rel="nofollow">charcoal grill</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jean J Abts</title>
		<link>http://www.dennmart.com/2008/09/30/quick-and-dirty-browser-cookie-testing/comment-page-1/#comment-861</link>
		<dc:creator>Jean J Abts</dc:creator>
		<pubDate>Mon, 16 Feb 2009 06:55:05 +0000</pubDate>
		<guid isPermaLink="false">http://www.dennmart.com/?p=97#comment-861</guid>
		<description>you are on my rss reader now</description>
		<content:encoded><![CDATA[<p>you are on my rss reader now</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: William A Iuchs</title>
		<link>http://www.dennmart.com/2008/09/30/quick-and-dirty-browser-cookie-testing/comment-page-1/#comment-848</link>
		<dc:creator>William A Iuchs</dc:creator>
		<pubDate>Mon, 02 Feb 2009 07:42:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.dennmart.com/?p=97#comment-848</guid>
		<description>nice article! nice site. you&#039;re in my rss feed now ;-)&lt;br&gt;keep it up</description>
		<content:encoded><![CDATA[<p>nice article! nice site. you&#39;re in my rss feed now <img src='http://www.dennmart.com/wp-includes/images/smilies/icon_wink.gif' alt=';-)' class='wp-smiley' /> <br />keep it up</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Valentin Perez</title>
		<link>http://www.dennmart.com/2008/09/30/quick-and-dirty-browser-cookie-testing/comment-page-1/#comment-847</link>
		<dc:creator>Valentin Perez</dc:creator>
		<pubDate>Sun, 01 Feb 2009 18:23:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.dennmart.com/?p=97#comment-847</guid>
		<description>nice article! nice site. you&#039;re in my rss feed now ;-)&lt;br&gt;keep it up</description>
		<content:encoded><![CDATA[<p>nice article! nice site. you&#39;re in my rss feed now <img src='http://www.dennmart.com/wp-includes/images/smilies/icon_wink.gif' alt=';-)' class='wp-smiley' /> <br />keep it up</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dan Gebhardt</title>
		<link>http://www.dennmart.com/2008/09/30/quick-and-dirty-browser-cookie-testing/comment-page-1/#comment-841</link>
		<dc:creator>Dan Gebhardt</dc:creator>
		<pubDate>Thu, 20 Nov 2008 21:43:31 +0000</pubDate>
		<guid isPermaLink="false">http://www.dennmart.com/?p=97#comment-841</guid>
		<description>Thanks for your code, Dennis. It works well to detect if cookies can be accepted by browsers, but does not necessarily detect if Safari&#039;s &quot;Private Browsing&quot; mode has been enabled. In this mode, new cookies can apparently be created but cookies created outside of &quot;Private Browsing&quot; mode will not be overwritten. This can create almost as many problems for cookie-based sessions as if cookies were not accepted at all.&lt;br&gt;&lt;br&gt;I&#039;ve modified your solution to also test for this case. In order to do this, I set the test cookie to a dynamic value, such as the current time. I then check whether the cookie has been set to the dynamic cookie value to ensure that &quot;private browsing&quot; has not been enabled.&lt;br&gt;&lt;br&gt;In order for this to work, you unfortunately can&#039;t delete the cookie after the test. Otherwise, the test won&#039;t recognize when the user had a previous session created outside of private browsing mode that they are now trying to change in private browsing mode.&lt;br&gt;&lt;br&gt;NOTE: I tried to post this comment earlier with a bit of javascript source in my comments, but DISQUS wasn&#039;t happy so I trimmed my code out.</description>
		<content:encoded><![CDATA[<p>Thanks for your code, Dennis. It works well to detect if cookies can be accepted by browsers, but does not necessarily detect if Safari&#39;s &#8220;Private Browsing&#8221; mode has been enabled. In this mode, new cookies can apparently be created but cookies created outside of &#8220;Private Browsing&#8221; mode will not be overwritten. This can create almost as many problems for cookie-based sessions as if cookies were not accepted at all.</p>
<p>I&#39;ve modified your solution to also test for this case. In order to do this, I set the test cookie to a dynamic value, such as the current time. I then check whether the cookie has been set to the dynamic cookie value to ensure that &#8220;private browsing&#8221; has not been enabled.</p>
<p>In order for this to work, you unfortunately can&#39;t delete the cookie after the test. Otherwise, the test won&#39;t recognize when the user had a previous session created outside of private browsing mode that they are now trying to change in private browsing mode.</p>
<p>NOTE: I tried to post this comment earlier with a bit of javascript source in my comments, but DISQUS wasn&#39;t happy so I trimmed my code out.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Eric</title>
		<link>http://www.dennmart.com/2008/09/30/quick-and-dirty-browser-cookie-testing/comment-page-1/#comment-821</link>
		<dc:creator>Eric</dc:creator>
		<pubDate>Wed, 01 Oct 2008 15:35:54 +0000</pubDate>
		<guid isPermaLink="false">http://www.dennmart.com/?p=97#comment-821</guid>
		<description>Appreciate the link, but if you&#039;d read my article, you&#039;d have seen that my method does not in fact use a GET parameter.  The first thing I found in google did, but I also ditched that, not because it wasn&#039;t clean (which it isn&#039;t) but because of other bugs it introduces, which I also mentioned in my article.

That said, I like your solution even more, since while it does run on each page load, the impact should be negligible, and it doesn&#039;t require a page redirect at all.  Nice work.  :)

-Eric</description>
		<content:encoded><![CDATA[<p>Appreciate the link, but if you&#8217;d read my article, you&#8217;d have seen that my method does not in fact use a GET parameter.  The first thing I found in google did, but I also ditched that, not because it wasn&#8217;t clean (which it isn&#8217;t) but because of other bugs it introduces, which I also mentioned in my article.</p>
<p>That said, I like your solution even more, since while it does run on each page load, the impact should be negligible, and it doesn&#8217;t require a page redirect at all.  Nice work.  <img src='http://www.dennmart.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>-Eric</p>
]]></content:encoded>
	</item>
</channel>
</rss>

<!-- Dynamic Page Served (once) in 0.046 seconds -->

