<?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/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
		>
<channel>
	<title>Comments for saush</title>
	<atom:link href="http://blog.saush.com/comments/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.saush.com</link>
	<description>technology, people and life in general</description>
	<lastBuildDate>Fri, 12 Mar 2010 12:08:56 +0000</lastBuildDate>
	<generator>http://wordpress.com/</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>Comment on Write a Sinatra-based Twitter clone in 200 lines of Ruby code by Joe</title>
		<link>http://blog.saush.com/2009/04/02/write-a-sinatra-based-twitter-clone-in-200-lines-of-ruby-code/#comment-1187</link>
		<dc:creator>Joe</dc:creator>
		<pubDate>Fri, 12 Mar 2010 12:08:56 +0000</pubDate>
		<guid isPermaLink="false">http://blog.saush.com/?p=314#comment-1187</guid>
		<description>Seems like your session key has a huge security flaw. In your login route you set:

    session[:userid] = user.id

But that&#039;s just a serial primary key, which means it&#039;s really easy to guess a valid session id (you wouldn&#039;t know who you were impersonating, but you could easily impersonate *someone* else). It would be better to have separate LoginSession and User datamapper models, and do something like:

    session[:sessionid] = login_session.uuid

Using a UUID makes it highly unlikely that one user can guess any other valid session identiier. It also allows easily expiring login sessions (delete the LoginSession records) without affecting users.</description>
		<content:encoded><![CDATA[<p>Seems like your session key has a huge security flaw. In your login route you set:</p>
<p>    session[:userid] = user.id</p>
<p>But that&#8217;s just a serial primary key, which means it&#8217;s really easy to guess a valid session id (you wouldn&#8217;t know who you were impersonating, but you could easily impersonate *someone* else). It would be better to have separate LoginSession and User datamapper models, and do something like:</p>
<p>    session[:sessionid] = login_session.uuid</p>
<p>Using a UUID makes it highly unlikely that one user can guess any other valid session identiier. It also allows easily expiring login sessions (delete the LoginSession records) without affecting users.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on My first contribution to an O&#8217;Reilly book (Rails Cookbook) by topshops</title>
		<link>http://blog.saush.com/2006/10/31/my-first-contribution-to-an-oreilly-book-rails-cookbook-2/#comment-1185</link>
		<dc:creator>topshops</dc:creator>
		<pubDate>Fri, 12 Mar 2010 08:49:42 +0000</pubDate>
		<guid isPermaLink="false">http://blog.saush.com/?p=143#comment-1185</guid>
		<description>For anybody Hello! Come on &lt;a href=&quot;http://topshops.biz&quot; rel=&quot;nofollow&quot;&gt;Market&lt;/a&gt;.</description>
		<content:encoded><![CDATA[<p>For anybody Hello! Come on <a href="http://topshops.biz" rel="nofollow">Market</a>.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Write a Sinatra-based Twitter clone in 200 lines of Ruby code by Altermatt</title>
		<link>http://blog.saush.com/2009/04/02/write-a-sinatra-based-twitter-clone-in-200-lines-of-ruby-code/#comment-1184</link>
		<dc:creator>Altermatt</dc:creator>
		<pubDate>Fri, 12 Mar 2010 01:53:17 +0000</pubDate>
		<guid isPermaLink="false">http://blog.saush.com/?p=314#comment-1184</guid>
		<description>I had sex for the first time after a total hysterectomy, and he went too deel and I had a shatp pain and some bleeding. I am still spottihg and I have alot of pain. Is this normal?;</description>
		<content:encoded><![CDATA[<p>I had sex for the first time after a total hysterectomy, and he went too deel and I had a shatp pain and some bleeding. I am still spottihg and I have alot of pain. Is this normal?;</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Naive Bayesian Classifiers and Ruby by Shirley</title>
		<link>http://blog.saush.com/2009/02/11/naive-bayesian-classifiers-and-ruby/#comment-1183</link>
		<dc:creator>Shirley</dc:creator>
		<pubDate>Thu, 11 Mar 2010 14:04:20 +0000</pubDate>
		<guid isPermaLink="false">http://blog.saush.com/?p=238#comment-1183</guid>
		<description>blog.saushc.om, howa do you do it?</description>
		<content:encoded><![CDATA[<p>blog.saushc.om, howa do you do it?</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Desktop Chinese-English lookup dictionary by Leonardo Chalfant</title>
		<link>http://blog.saush.com/2006/09/26/desktop-chinese-english-lookup-dictionary/#comment-1182</link>
		<dc:creator>Leonardo Chalfant</dc:creator>
		<pubDate>Wed, 10 Mar 2010 11:22:28 +0000</pubDate>
		<guid isPermaLink="false">http://blog.saush.com/?p=130#comment-1182</guid>
		<description>Super info&amp;fine site.</description>
		<content:encoded><![CDATA[<p>Super info&amp;fine site.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
