<?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"
	>
<channel>
	<title>Comments on: Rails Gotcha: Associations Stored in the Session</title>
	<atom:link href="http://blog.inquirylabs.com/2006/05/12/rails-gotcha-associations-stored-in-the-session/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.inquirylabs.com/2006/05/12/rails-gotcha-associations-stored-in-the-session/</link>
	<description>Politics, Programming and Possibilities</description>
	<pubDate>Tue, 02 Dec 2008 01:16:18 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.6.1</generator>
		<item>
		<title>By: Jeff</title>
		<link>http://blog.inquirylabs.com/2006/05/12/rails-gotcha-associations-stored-in-the-session/#comment-349</link>
		<dc:creator>Jeff</dc:creator>
		<pubDate>Sat, 13 May 2006 01:06:58 +0000</pubDate>
		<guid isPermaLink="false">http://blog.inquirylabs.com/2006/05/12/rails-gotcha-associations-stored-in-the-session/#comment-349</guid>
		<description>Thanks for the tip, Duane.  Sometimes I would wonder whether to store an object in the session hash or just the id to the object, and your example cements it for me.</description>
		<content:encoded><![CDATA[<p>Thanks for the tip, Duane.  Sometimes I would wonder whether to store an object in the session hash or just the id to the object, and your example cements it for me.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: J. Weir</title>
		<link>http://blog.inquirylabs.com/2006/05/12/rails-gotcha-associations-stored-in-the-session/#comment-348</link>
		<dc:creator>J. Weir</dc:creator>
		<pubDate>Fri, 12 May 2006 22:42:02 +0000</pubDate>
		<guid isPermaLink="false">http://blog.inquirylabs.com/2006/05/12/rails-gotcha-associations-stored-in-the-session/#comment-348</guid>
		<description>I find it to be dangerous to store objects in sessions. I always use ids.

An extreme case of why not store objects in a session: 

your login stores the user's object in a session.  

the admin upgrades/downgrades a logged in user's permissions.

the logged in user will be using their old permissions, unless they log back in or code is explicitly written to observe changes to the record.</description>
		<content:encoded><![CDATA[<p>I find it to be dangerous to store objects in sessions. I always use ids.</p>
<p>An extreme case of why not store objects in a session: </p>
<p>your login stores the user&#8217;s object in a session.  </p>
<p>the admin upgrades/downgrades a logged in user&#8217;s permissions.</p>
<p>the logged in user will be using their old permissions, unless they log back in or code is explicitly written to observe changes to the record.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
