<?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>Geoff Evason &#187; passenger</title>
	<atom:link href="http://geoff.evason.name/tag/passenger/feed/" rel="self" type="application/rss+xml" />
	<link>http://geoff.evason.name</link>
	<description></description>
	<lastBuildDate>Mon, 03 May 2010 01:22:04 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Set Cookie in HTML Body for Rails 2.3.2</title>
		<link>http://geoff.evason.name/2009/05/26/set-cookie-in-html-body-for-rails-232/</link>
		<comments>http://geoff.evason.name/2009/05/26/set-cookie-in-html-body-for-rails-232/#comments</comments>
		<pubDate>Tue, 26 May 2009 04:33:55 +0000</pubDate>
		<dc:creator>Geoff</dc:creator>
				<category><![CDATA[tech]]></category>
		<category><![CDATA[cookies]]></category>
		<category><![CDATA[passenger]]></category>
		<category><![CDATA[rails]]></category>

		<guid isPermaLink="false">http://geoff.evason.name/?p=69</guid>
		<description><![CDATA[I recently upgraded an app to rails 2.3 and on many pages on my local machine the top of the HTML body included something like this:

Set-Cookie: _myapp_session_id=BAh7B...; path=/; HttpOnly

I couldn&#8217;t figure out what was happening until I found this forum post which explained that the problem was related to passenger 2.0.6.  To fix the [...]]]></description>
			<content:encoded><![CDATA[<p>I recently upgraded an app to rails 2.3 and on many pages on my local machine the top of the HTML body included something like this:</p>
<pre><code>
Set-Cookie: _myapp_session_id=BAh7B...; path=/; HttpOnly
</code></pre>
<p>I couldn&#8217;t figure out what was happening until I found <a href="http://railsforum.com/viewtopic.php?id=27180" title"rails 2.3 cookie in body">this forum post</a> which explained that the problem was related to passenger 2.0.6.  To fix the problem I just needed to update the version of passenger I was running.</p>
<p>To update passenger (on a mac) was pretty simple.  Just run the following 2 commands:</p>
<pre><code>
sudo gem install passenger
sudo passenger-install-apache2-module
</code></pre>
<p>Depending on how you set up your local apache instance, you may also need to update the config. I needed to update /etc/apache2/httpd.conf to</p>
<pre><code>
LoadModule passenger_module /Library/Ruby/Gems/1.8/gems/passenger-2.1.2/ext/apache2/mod_passenger.so
PassengerRoot /Library/Ruby/Gems/1.8/gems/passenger-2.1.2
</code></pre>
]]></content:encoded>
			<wfw:commentRss>http://geoff.evason.name/2009/05/26/set-cookie-in-html-body-for-rails-232/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
	</channel>
</rss>
