<?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: Reserved names for cookies</title>
	<atom:link href="http://jochem.vandieten.net/2008/07/03/reserved-names-for-cookies/feed/" rel="self" type="application/rss+xml" />
	<link>http://jochem.vandieten.net/2008/07/03/reserved-names-for-cookies/</link>
	<description>Jochem's tech exploits</description>
	<pubDate>Sun, 14 Mar 2010 06:46:05 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.7</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Brad Wood</title>
		<link>http://jochem.vandieten.net/2008/07/03/reserved-names-for-cookies/comment-page-1/#comment-28</link>
		<dc:creator>Brad Wood</dc:creator>
		<pubDate>Tue, 15 Jul 2008 06:16:29 +0000</pubDate>
		<guid isPermaLink="false">http://jochem.vandieten.net/2008/07/03/reserved-names-for-cookies/#comment-28</guid>
		<description>Here's my latest solution to this problem.  So far it works locally on my machine.

http://www.codersrevolution.com/index.cfm/2008/7/15/No-Cookie-For-You-Second-Solution</description>
		<content:encoded><![CDATA[<p>Here&#8217;s my latest solution to this problem.  So far it works locally on my machine.</p>
<p><a href="http://www.codersrevolution.com/index.cfm/2008/7/15/No-Cookie-For-You-Second-Solution" rel="nofollow">http://www.codersrevolution.com/index.cfm/2008/7/15/No-Cookie-For-You-Second-Solution</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Brad Wood</title>
		<link>http://jochem.vandieten.net/2008/07/03/reserved-names-for-cookies/comment-page-1/#comment-27</link>
		<dc:creator>Brad Wood</dc:creator>
		<pubDate>Sat, 12 Jul 2008 09:00:04 +0000</pubDate>
		<guid isPermaLink="false">http://jochem.vandieten.net/2008/07/03/reserved-names-for-cookies/#comment-27</guid>
		<description>Here is the servlet filter to remove cookies:
http://www.codersrevolution.com/index.cfm/2008/7/11/Java-Servlet-Filters-Part-2-Removing-Cookies

That didn't solve the problem, and this is what I found:
http://www.codersrevolution.com/index.cfm/2008/7/11/Cookie-Reserved-Names-Whos-to-blame</description>
		<content:encoded><![CDATA[<p>Here is the servlet filter to remove cookies:<br />
<a href="http://www.codersrevolution.com/index.cfm/2008/7/11/Java-Servlet-Filters-Part-2-Removing-Cookies" rel="nofollow">http://www.codersrevolution.com/index.cfm/2008/7/11/Java-Servlet-Filters-Part-2-Removing-Cookies</a></p>
<p>That didn&#8217;t solve the problem, and this is what I found:<br />
<a href="http://www.codersrevolution.com/index.cfm/2008/7/11/Cookie-Reserved-Names-Whos-to-blame" rel="nofollow">http://www.codersrevolution.com/index.cfm/2008/7/11/Cookie-Reserved-Names-Whos-to-blame</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Brad Wood</title>
		<link>http://jochem.vandieten.net/2008/07/03/reserved-names-for-cookies/comment-page-1/#comment-26</link>
		<dc:creator>Brad Wood</dc:creator>
		<pubDate>Sat, 12 Jul 2008 04:50:43 +0000</pubDate>
		<guid isPermaLink="false">http://jochem.vandieten.net/2008/07/03/reserved-names-for-cookies/#comment-26</guid>
		<description>Jochem, I'm in the process of blogging my finds now, but the short story is I successfully wrote a servlet filter to remove cookies from the httpServletRequest object before ColdFusion got it, but it didn't work becuase JRUN is where the cookies get parsed and the log files are appended BEFORE any servlet filters are run.  I tracked it down to the javax.servlet.http.Cookie class (which is thankfully open source) and sure enough, an IllegalArgumentException error is thrown when the cookie name is a in a list of reserved names.  Check out the code at http://kickjava.com/src/javax/servlet/http/Cookie.java.htm.

The best Adobe could do would be to not log errors returned by the Cookie class constructor.  In the mean time, I posted this question to the Sun Java forum to see if anyone could provide some history.  http://forum.java.sun.com/thread.jspa?threadID=5313146

~Brad</description>
		<content:encoded><![CDATA[<p>Jochem, I&#8217;m in the process of blogging my finds now, but the short story is I successfully wrote a servlet filter to remove cookies from the httpServletRequest object before ColdFusion got it, but it didn&#8217;t work becuase JRUN is where the cookies get parsed and the log files are appended BEFORE any servlet filters are run.  I tracked it down to the javax.servlet.http.Cookie class (which is thankfully open source) and sure enough, an IllegalArgumentException error is thrown when the cookie name is a in a list of reserved names.  Check out the code at <a href="http://kickjava.com/src/javax/servlet/http/Cookie.java.htm" rel="nofollow">http://kickjava.com/src/javax/servlet/http/Cookie.java.htm</a>.</p>
<p>The best Adobe could do would be to not log errors returned by the Cookie class constructor.  In the mean time, I posted this question to the Sun Java forum to see if anyone could provide some history.  <a href="http://forum.java.sun.com/thread.jspa?threadID=5313146" rel="nofollow">http://forum.java.sun.com/thread.jspa?threadID=5313146</a></p>
<p>~Brad</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jochem</title>
		<link>http://jochem.vandieten.net/2008/07/03/reserved-names-for-cookies/comment-page-1/#comment-25</link>
		<dc:creator>Jochem</dc:creator>
		<pubDate>Fri, 11 Jul 2008 08:19:54 +0000</pubDate>
		<guid isPermaLink="false">http://jochem.vandieten.net/2008/07/03/reserved-names-for-cookies/#comment-25</guid>
		<description>I filed an enhancement request with Adobe with the following text:

&lt;blockquote&gt;Ignore logging of "domain", "expires" etc. cookies

When CF (JRun?) receives a request with cookies named "domain", "expires" etc. it logs an error in *-event.log. This needlessly clutters the logfile with something that isn't really an error (the Netscape cookie proposal, RFC 2109 and RFC 2695 all allow those cookie names). Please allow us to switch off logging of these cookies (and disable this logging by default).&lt;/blockquote&gt;

</description>
		<content:encoded><![CDATA[<p>I filed an enhancement request with Adobe with the following text:</p>
<blockquote><p>Ignore logging of &#8220;domain&#8221;, &#8220;expires&#8221; etc. cookies</p>
<p>When CF (JRun?) receives a request with cookies named &#8220;domain&#8221;, &#8220;expires&#8221; etc. it logs an error in *-event.log. This needlessly clutters the logfile with something that isn&#8217;t really an error (the Netscape cookie proposal, RFC 2109 and RFC 2695 all allow those cookie names). Please allow us to switch off logging of these cookies (and disable this logging by default).</p></blockquote>
]]></content:encoded>
	</item>
	<item>
		<title>By: Brad Wood</title>
		<link>http://jochem.vandieten.net/2008/07/03/reserved-names-for-cookies/comment-page-1/#comment-24</link>
		<dc:creator>Brad Wood</dc:creator>
		<pubDate>Wed, 09 Jul 2008 20:02:08 +0000</pubDate>
		<guid isPermaLink="false">http://jochem.vandieten.net/2008/07/03/reserved-names-for-cookies/#comment-24</guid>
		<description>Dang it Charlie, now you've turned me on to servlet filters!  :)  I've always known what they did, but never considered trying to write one.  I think I'm gonna' try to make a filter to get rid of certain cookies like you said-- if for nothing else than to see how it would work.  I'll blog it if I can figure it out.

~Brad</description>
		<content:encoded><![CDATA[<p>Dang it Charlie, now you&#8217;ve turned me on to servlet filters!  <img src='http://jochem.vandieten.net/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />  I&#8217;ve always known what they did, but never considered trying to write one.  I think I&#8217;m gonna&#8217; try to make a filter to get rid of certain cookies like you said&#8211; if for nothing else than to see how it would work.  I&#8217;ll blog it if I can figure it out.</p>
<p>~Brad</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jochem</title>
		<link>http://jochem.vandieten.net/2008/07/03/reserved-names-for-cookies/comment-page-1/#comment-23</link>
		<dc:creator>Jochem</dc:creator>
		<pubDate>Wed, 09 Jul 2008 07:55:24 +0000</pubDate>
		<guid isPermaLink="false">http://jochem.vandieten.net/2008/07/03/reserved-names-for-cookies/#comment-23</guid>
		<description>My best theory is there is a user-agent out there that does incorrect parsing of Set-Cookie headers and assumes any name=value pair is a cookie, instead of just the first being the cookie and the others attributes. If that happens to be some sort of spider (or in your case perhaps a linkchecker from a wiki / CMS) that is an error that has very little impact on the results and thus a small chance of detection. And now you are not using any cookies at all they aren't parsed incorrectly anymore and you don't get the error in your logfiles anymore.</description>
		<content:encoded><![CDATA[<p>My best theory is there is a user-agent out there that does incorrect parsing of Set-Cookie headers and assumes any name=value pair is a cookie, instead of just the first being the cookie and the others attributes. If that happens to be some sort of spider (or in your case perhaps a linkchecker from a wiki / CMS) that is an error that has very little impact on the results and thus a small chance of detection. And now you are not using any cookies at all they aren&#8217;t parsed incorrectly anymore and you don&#8217;t get the error in your logfiles anymore.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Terry Palmer</title>
		<link>http://jochem.vandieten.net/2008/07/03/reserved-names-for-cookies/comment-page-1/#comment-20</link>
		<dc:creator>Terry Palmer</dc:creator>
		<pubDate>Mon, 07 Jul 2008 15:21:32 +0000</pubDate>
		<guid isPermaLink="false">http://jochem.vandieten.net/2008/07/03/reserved-names-for-cookies/#comment-20</guid>
		<description>Nice work Jochem.  Seems my lack of knowledge of IIS log files led me to the wrong conclusion on "No Cookies For You".  The CS vs SC distinction does make sense now.  There is still a point of confusion on my part though.  Since setting "setclientcookies=false" in the cfapplication tag, we have no longer seen the "error Cannot create cookie:" errors in our logs.  Do you have any insight as to why my fix would work for "blocking" reserved word cookies as it seems?</description>
		<content:encoded><![CDATA[<p>Nice work Jochem.  Seems my lack of knowledge of IIS log files led me to the wrong conclusion on &#8220;No Cookies For You&#8221;.  The CS vs SC distinction does make sense now.  There is still a point of confusion on my part though.  Since setting &#8220;setclientcookies=false&#8221; in the cfapplication tag, we have no longer seen the &#8220;error Cannot create cookie:&#8221; errors in our logs.  Do you have any insight as to why my fix would work for &#8220;blocking&#8221; reserved word cookies as it seems?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: charlie arehart</title>
		<link>http://jochem.vandieten.net/2008/07/03/reserved-names-for-cookies/comment-page-1/#comment-18</link>
		<dc:creator>charlie arehart</dc:creator>
		<pubDate>Fri, 04 Jul 2008 00:34:11 +0000</pubDate>
		<guid isPermaLink="false">http://jochem.vandieten.net/2008/07/03/reserved-names-for-cookies/#comment-18</guid>
		<description>Great investigative work, Jochem. Thanks so much for sharing this. As for how to solve it, while we might await Adobe coming up with a solution, another thing we could do is have someone write a Java Servlet filter that looks for cookies with these names and drops them from the request before it's passed on to CF. Wouldn't be too hard.

If anyone's interested, you can find out more about servlet Filters (and their use with CF) in a  Feb 2003 CFDJ article I did, "Fun with Filters", at http://cfdj.sys-con.com/read/41574_p.htm.</description>
		<content:encoded><![CDATA[<p>Great investigative work, Jochem. Thanks so much for sharing this. As for how to solve it, while we might await Adobe coming up with a solution, another thing we could do is have someone write a Java Servlet filter that looks for cookies with these names and drops them from the request before it&#8217;s passed on to CF. Wouldn&#8217;t be too hard.</p>
<p>If anyone&#8217;s interested, you can find out more about servlet Filters (and their use with CF) in a  Feb 2003 CFDJ article I did, &#8220;Fun with Filters&#8221;, at <a href="http://cfdj.sys-con.com/read/41574_p.htm" rel="nofollow">http://cfdj.sys-con.com/read/41574_p.htm</a>.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jochem</title>
		<link>http://jochem.vandieten.net/2008/07/03/reserved-names-for-cookies/comment-page-1/#comment-17</link>
		<dc:creator>Jochem</dc:creator>
		<pubDate>Thu, 03 Jul 2008 18:57:11 +0000</pubDate>
		<guid isPermaLink="false">http://jochem.vandieten.net/2008/07/03/reserved-names-for-cookies/#comment-17</guid>
		<description>Obviously somebody is hitting your server with bad cookies: you never set them so he shouldn't send them.

But looking at the three different specifications we have for cookies (the &lt;a href="http://web.archive.org/web/19990427030253/http://www.netscape.com/newsref/std/cookie_spec.html" rel="nofollow"&gt;Netscape cookie proposal&lt;/a&gt;, &lt;a href="ftp://ftp.rfc-editor.org/in-notes/rfc2109.txt" rel="nofollow"&gt;RFC 2109&lt;/a&gt; and &lt;a href="ftp://ftp.rfc-editor.org/in-notes/rfc2695.txt" rel="nofollow"&gt;RFC 2695&lt;/a&gt;) there is no reason why these cookie names should be reserved in ColdFusion. The name=value pair is always the first pair of a Set-Cookie header so there is no need for disambiguation.</description>
		<content:encoded><![CDATA[<p>Obviously somebody is hitting your server with bad cookies: you never set them so he shouldn&#8217;t send them.</p>
<p>But looking at the three different specifications we have for cookies (the <a href="http://web.archive.org/web/19990427030253/http://www.netscape.com/newsref/std/cookie_spec.html" rel="nofollow">Netscape cookie proposal</a>, <a href="ftp://ftp.rfc-editor.org/in-notes/rfc2109.txt" rel="nofollow">RFC 2109</a> and <a href="ftp://ftp.rfc-editor.org/in-notes/rfc2695.txt" rel="nofollow">RFC 2695</a>) there is no reason why these cookie names should be reserved in ColdFusion. The name=value pair is always the first pair of a Set-Cookie header so there is no need for disambiguation.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: mark kruger</title>
		<link>http://jochem.vandieten.net/2008/07/03/reserved-names-for-cookies/comment-page-1/#comment-16</link>
		<dc:creator>mark kruger</dc:creator>
		<pubDate>Thu, 03 Jul 2008 18:43:35 +0000</pubDate>
		<guid isPermaLink="false">http://jochem.vandieten.net/2008/07/03/reserved-names-for-cookies/#comment-16</guid>
		<description>Jochem,

I think you solved this mystery handily. I read the "no cookies..." blog and I was almost buying it - but the client vs server thing was bothering me too. I think you nailed it.

-Mark</description>
		<content:encoded><![CDATA[<p>Jochem,</p>
<p>I think you solved this mystery handily. I read the &#8220;no cookies&#8230;&#8221; blog and I was almost buying it - but the client vs server thing was bothering me too. I think you nailed it.</p>
<p>-Mark</p>
]]></content:encoded>
	</item>
</channel>
</rss>
