<?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: Remember Me&#8217;s with Rails</title>
	<atom:link href="http://wojodesign.com/remember-mes-with-rails/feed/" rel="self" type="application/rss+xml" />
	<link>http://wojodesign.com/remember-mes-with-rails/</link>
	<description>Web Design and Development Blog</description>
	<lastBuildDate>Fri, 03 Feb 2012 10:57:00 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=</generator>
<xhtml:meta xmlns:xhtml="http://www.w3.org/1999/xhtml" name="robots" content="noindex" />
	<item>
		<title>By: Anonymous</title>
		<link>http://wojodesign.com/remember-mes-with-rails/#comment-3930</link>
		<dc:creator>Anonymous</dc:creator>
		<pubDate>Thu, 25 Aug 2011 09:58:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.thewojogroup.com/?p=150#comment-3930</guid>
		<description>    My dear friends, do you want to be more sexy in people&#039;s eyes? Just come in, please!
    We are international trade that specializes in the Karen Millen Dresses. Depending on the high quality and various of design styles, Karen Millen Dress have become the leader in the dress products. According to the different people, Karen Millen dresses are divided into two groups, the kids&#039; and adults&#039; dress. Karen Millen is your best choice! Our products are authentic quality with original box. Discount Karen Millen will cost you less money. So, please don’t hesitate, just contact us for details to get the Cheap Karen Millen Dress! We will be your reliable business partner! 
    Welcome to our website:== http://www.karendresses.com ==  Thank you!</description>
		<content:encoded><![CDATA[<p>My dear friends, do you want to be more sexy in people&#8217;s eyes? Just come in, please!<br />
    We are international trade that specializes in the Karen Millen Dresses. Depending on the high quality and various of design styles, Karen Millen Dress have become the leader in the dress products. According to the different people, Karen Millen dresses are divided into two groups, the kids&#8217; and adults&#8217; dress. Karen Millen is your best choice! Our products are authentic quality with original box. Discount Karen Millen will cost you less money. So, please don’t hesitate, just contact us for details to get the Cheap Karen Millen Dress! We will be your reliable business partner!<br />
    Welcome to our website:== <a href="http://www.karendresses.com" rel="nofollow">http://www.karendresses.com</a> ==  Thank you!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jeff King</title>
		<link>http://wojodesign.com/remember-mes-with-rails/#comment-17</link>
		<dc:creator>Jeff King</dc:creator>
		<pubDate>Tue, 02 Mar 2010 08:04:28 +0000</pubDate>
		<guid isPermaLink="false">http://www.thewojogroup.com/?p=150#comment-17</guid>
		<description>Your second code block is full of typos.  cookies[:remember_me] is never set.  It should be cookies[:remember_me_id] and cookies[:remember_me_code] depending on the context.

Regardless, you pointed me in the general direction, and I was able to figure out the rest.  Thanks for saving me several more hours of work.</description>
		<content:encoded><![CDATA[<p>Your second code block is full of typos.  cookies[:remember_me] is never set.  It should be cookies[:remember_me_id] and cookies[:remember_me_code] depending on the context.</p>
<p>Regardless, you pointed me in the general direction, and I was able to figure out the rest.  Thanks for saving me several more hours of work.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: owen</title>
		<link>http://wojodesign.com/remember-mes-with-rails/#comment-16</link>
		<dc:creator>owen</dc:creator>
		<pubDate>Tue, 09 Feb 2010 03:31:48 +0000</pubDate>
		<guid isPermaLink="false">http://www.thewojogroup.com/?p=150#comment-16</guid>
		<description>Excellent info, thanks!</description>
		<content:encoded><![CDATA[<p>Excellent info, thanks!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Rasmus Bang Grouleff</title>
		<link>http://wojodesign.com/remember-mes-with-rails/#comment-15</link>
		<dc:creator>Rasmus Bang Grouleff</dc:creator>
		<pubDate>Sat, 16 Jan 2010 15:34:06 +0000</pubDate>
		<guid isPermaLink="false">http://www.thewojogroup.com/?p=150#comment-15</guid>
		<description>The data for generating the remember_me_code should really be salted with some (random) value that changes on each login (and preferably on each usage of the value in the cookie). Otherwise it&#039;ll be much easier to forge the remember_me_code cookie for an attacker.

The simplest method would be to add a logged_in_at attribute on the User model that gets updated after authentication and use that to salt the email before passing it to the hash function.</description>
		<content:encoded><![CDATA[<p>The data for generating the remember_me_code should really be salted with some (random) value that changes on each login (and preferably on each usage of the value in the cookie). Otherwise it&#8217;ll be much easier to forge the remember_me_code cookie for an attacker.</p>
<p>The simplest method would be to add a logged_in_at attribute on the User model that gets updated after authentication and use that to salt the email before passing it to the hash function.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: james_earl</title>
		<link>http://wojodesign.com/remember-mes-with-rails/#comment-14</link>
		<dc:creator>james_earl</dc:creator>
		<pubDate>Wed, 02 Dec 2009 21:32:07 +0000</pubDate>
		<guid isPermaLink="false">http://www.thewojogroup.com/?p=150#comment-14</guid>
		<description>SHA1 is a hashing algorithm.

It&#039;s not encryption. You can reverse encryption. You can&#039;t reverse a (properly designed) hash.</description>
		<content:encoded><![CDATA[<p>SHA1 is a hashing algorithm.</p>
<p>It&#8217;s not encryption. You can reverse encryption. You can&#8217;t reverse a (properly designed) hash.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Brett Wejrowski</title>
		<link>http://wojodesign.com/remember-mes-with-rails/#comment-13</link>
		<dc:creator>Brett Wejrowski</dc:creator>
		<pubDate>Fri, 18 Sep 2009 15:46:58 +0000</pubDate>
		<guid isPermaLink="false">http://www.thewojogroup.com/?p=150#comment-13</guid>
		<description>@xpmatteo, the idea was that by taking a random excerpt of the hash, it would be impossible to figure out. This is mostly because the attacker wouldn’t know what I used to create this hash.
–
However, I have become more prone to using a more complicated input to the hash since I published this, using multiple user fields along with a secret string to improve security.
–
Thanks for the feedback!</description>
		<content:encoded><![CDATA[<p>@xpmatteo, the idea was that by taking a random excerpt of the hash, it would be impossible to figure out. This is mostly because the attacker wouldn’t know what I used to create this hash.<br />
–<br />
However, I have become more prone to using a more complicated input to the hash since I published this, using multiple user fields along with a secret string to improve security.<br />
–<br />
Thanks for the feedback!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: xpmatteo</title>
		<link>http://wojodesign.com/remember-mes-with-rails/#comment-12</link>
		<dc:creator>xpmatteo</dc:creator>
		<pubDate>Fri, 18 Sep 2009 15:29:15 +0000</pubDate>
		<guid isPermaLink="false">http://www.thewojogroup.com/?p=150#comment-12</guid>
		<description>Hi Brett,

I&#039;m not convinced that your implementation is secure enough.  If I know the user id and the email of another user, I can forge cookies to let me in.  To make that more secure, I would add a secret string to the input of the SHA1 hashing function.</description>
		<content:encoded><![CDATA[<p>Hi Brett,</p>
<p>I&#8217;m not convinced that your implementation is secure enough.  If I know the user id and the email of another user, I can forge cookies to let me in.  To make that more secure, I would add a secret string to the input of the SHA1 hashing function.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Balachandran</title>
		<link>http://wojodesign.com/remember-mes-with-rails/#comment-11</link>
		<dc:creator>Balachandran</dc:creator>
		<pubDate>Mon, 30 Mar 2009 05:57:20 +0000</pubDate>
		<guid isPermaLink="false">http://www.thewojogroup.com/?p=150#comment-11</guid>
		<description>Dear,
    I am trying to implement this remember me code. In this you are checking the conditions called cookies[:remember_me]. May i know from where you are getting the code cookies[:remember_me].In the cookies we are not storing cookies[:remember_me] but when are checking in the before filter we are using this,so pls let me know reg this issues.

# if ( cookies[:remember_me] and cookies[:remember_me] and User.find( cookies[:remember_me]) and Digest::SHA1.hexdigest( User.find( cookies[:remember_me] ).email )[4,18] == cookies[:remember_me_code]  )</description>
		<content:encoded><![CDATA[<p>Dear,<br />
    I am trying to implement this remember me code. In this you are checking the conditions called cookies[:remember_me]. May i know from where you are getting the code cookies[:remember_me].In the cookies we are not storing cookies[:remember_me] but when are checking in the before filter we are using this,so pls let me know reg this issues.</p>
<p># if ( cookies[:remember_me] and cookies[:remember_me] and User.find( cookies[:remember_me]) and Digest::SHA1.hexdigest( User.find( cookies[:remember_me] ).email )[4,18] == cookies[:remember_me_code]  )</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Andreas</title>
		<link>http://wojodesign.com/remember-mes-with-rails/#comment-10</link>
		<dc:creator>Andreas</dc:creator>
		<pubDate>Thu, 06 Nov 2008 11:49:12 +0000</pubDate>
		<guid isPermaLink="false">http://www.thewojogroup.com/?p=150#comment-10</guid>
		<description>Nice how-to!  One thing though: Could it be that &quot;cookies.delete :backbone_id&quot; needs to be &quot;cookies.delete :remember_me_id&quot; instead?</description>
		<content:encoded><![CDATA[<p>Nice how-to!  One thing though: Could it be that &#8220;cookies.delete :backbone_id&#8221; needs to be &#8220;cookies.delete :remember_me_id&#8221; instead?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Brett</title>
		<link>http://wojodesign.com/remember-mes-with-rails/#comment-9</link>
		<dc:creator>Brett</dc:creator>
		<pubDate>Mon, 29 Sep 2008 22:24:11 +0000</pubDate>
		<guid isPermaLink="false">http://www.thewojogroup.com/?p=150#comment-9</guid>
		<description>Not a bad idea.  However, it would depend on what user data you store in your session variables.  As long as each site has similar user info in their database, or you are using the same database for all the sites, that would work fine (i.e. using email in the session would be easier than using user id if you used a different dB to store user data).

For this site, what I meant for multiple logins is that I have a user system for admins (i.e. viewing stats and creating posts) and a completely different, temporary system for beta users (for the beta launch, visitors must create a username to view the site, in order to limit traffic).  So I have two different types of logins and user models, hence,  two separate custom authentication systems, which is why I chose not to use a plugin.

But you have a good idea for using one session for multiple sites under one domain, as far as I know it should work.</description>
		<content:encoded><![CDATA[<p>Not a bad idea.  However, it would depend on what user data you store in your session variables.  As long as each site has similar user info in their database, or you are using the same database for all the sites, that would work fine (i.e. using email in the session would be easier than using user id if you used a different dB to store user data).</p>
<p>For this site, what I meant for multiple logins is that I have a user system for admins (i.e. viewing stats and creating posts) and a completely different, temporary system for beta users (for the beta launch, visitors must create a username to view the site, in order to limit traffic).  So I have two different types of logins and user models, hence,  two separate custom authentication systems, which is why I chose not to use a plugin.</p>
<p>But you have a good idea for using one session for multiple sites under one domain, as far as I know it should work.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

