<?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:media="http://search.yahoo.com/mrss/"
		>
<channel>
	<title>Comments on: Session cookie expiration time in Rails</title>
	<atom:link href="http://squarewheel.wordpress.com/2007/11/03/session-cookie-expiration-time-in-rails/feed/" rel="self" type="application/rss+xml" />
	<link>http://squarewheel.wordpress.com/2007/11/03/session-cookie-expiration-time-in-rails/</link>
	<description>Rants on ruby on rails ridiculness</description>
	<lastBuildDate>Sun, 13 Sep 2009 11:43:13 +0000</lastBuildDate>
	<generator>http://wordpress.com/</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: squarewheel</title>
		<link>http://squarewheel.wordpress.com/2007/11/03/session-cookie-expiration-time-in-rails/#comment-42</link>
		<dc:creator>squarewheel</dc:creator>
		<pubDate>Sun, 13 Sep 2009 11:43:13 +0000</pubDate>
		<guid isPermaLink="false">http://squarewheel.wordpress.com/2007/11/03/session-cookie-expiration-time-in-rails/#comment-42</guid>
		<description>This plugin is obsolete, update to rails 2.3.x. 

Other than that, you can try to alter request.session_options[:expires_after] in your controller method, just make sure to clone session_options first (it&#039;s a frozen hash). I think it might not work at that stage though.</description>
		<content:encoded><![CDATA[<p>This plugin is obsolete, update to rails 2.3.x. </p>
<p>Other than that, you can try to alter request.session_options[:expires_after] in your controller method, just make sure to clone session_options first (it&#8217;s a frozen hash). I think it might not work at that stage though.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Robb Shecter</title>
		<link>http://squarewheel.wordpress.com/2007/11/03/session-cookie-expiration-time-in-rails/#comment-41</link>
		<dc:creator>Robb Shecter</dc:creator>
		<pubDate>Sun, 13 Sep 2009 03:59:34 +0000</pubDate>
		<guid isPermaLink="false">http://squarewheel.wordpress.com/2007/11/03/session-cookie-expiration-time-in-rails/#comment-41</guid>
		<description>Hi,

Thanks for the work on this.  It seems to work great for me, but I just realized that the statement must be in the body of a controller, not in a controller method.  Would you happen to know of a way to invoke the plugin from within an action method?  (I want to change the cookie expiration date depending on some factors.)

As a work-around, I can redirect to another controller that simply makes the call to the plug-in in its body.</description>
		<content:encoded><![CDATA[<p>Hi,</p>
<p>Thanks for the work on this.  It seems to work great for me, but I just realized that the statement must be in the body of a controller, not in a controller method.  Would you happen to know of a way to invoke the plugin from within an action method?  (I want to change the cookie expiration date depending on some factors.)</p>
<p>As a work-around, I can redirect to another controller that simply makes the call to the plug-in in its body.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Alberto Gasparin</title>
		<link>http://squarewheel.wordpress.com/2007/11/03/session-cookie-expiration-time-in-rails/#comment-33</link>
		<dc:creator>Alberto Gasparin</dc:creator>
		<pubDate>Thu, 19 Feb 2009 13:18:29 +0000</pubDate>
		<guid isPermaLink="false">http://squarewheel.wordpress.com/2007/11/03/session-cookie-expiration-time-in-rails/#comment-33</guid>
		<description>Thank you! Great job.</description>
		<content:encoded><![CDATA[<p>Thank you! Great job.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: squarewheel</title>
		<link>http://squarewheel.wordpress.com/2007/11/03/session-cookie-expiration-time-in-rails/#comment-32</link>
		<dc:creator>squarewheel</dc:creator>
		<pubDate>Wed, 18 Feb 2009 18:14:21 +0000</pubDate>
		<guid isPermaLink="false">http://squarewheel.wordpress.com/2007/11/03/session-cookie-expiration-time-in-rails/#comment-32</guid>
		<description>The solution is here: http://squarewheel.pl/posts/3</description>
		<content:encoded><![CDATA[<p>The solution is here: <a href="http://squarewheel.pl/posts/3" rel="nofollow">http://squarewheel.pl/posts/3</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: squarewheel</title>
		<link>http://squarewheel.wordpress.com/2007/11/03/session-cookie-expiration-time-in-rails/#comment-31</link>
		<dc:creator>squarewheel</dc:creator>
		<pubDate>Tue, 17 Feb 2009 23:53:09 +0000</pubDate>
		<guid isPermaLink="false">http://squarewheel.wordpress.com/2007/11/03/session-cookie-expiration-time-in-rails/#comment-31</guid>
		<description>Quick update—if you can set expiration period globally, for whole application, and do not need to set it up on per-controller basis, then just modify your ``config/intializers/session_store.rb&#039;&#039; and add :expire_after key with desired period. When it comes to per-controller changes, then it becomes more complicated. It seems it&#039;s too late to change session cookie options at that time (it shouldn&#039;t be, as the cookie is not yet sent then, but it is). A quick glance at Rack::Session middleware shows it should allow late changes to options, but I haven&#039;t yet figured out how rails exactly use that middleware.</description>
		<content:encoded><![CDATA[<p>Quick update—if you can set expiration period globally, for whole application, and do not need to set it up on per-controller basis, then just modify your &#8220;config/intializers/session_store.rb&#8221; and add :expire_after key with desired period. When it comes to per-controller changes, then it becomes more complicated. It seems it&#8217;s too late to change session cookie options at that time (it shouldn&#8217;t be, as the cookie is not yet sent then, but it is). A quick glance at Rack::Session middleware shows it should allow late changes to options, but I haven&#8217;t yet figured out how rails exactly use that middleware.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: squarewheel</title>
		<link>http://squarewheel.wordpress.com/2007/11/03/session-cookie-expiration-time-in-rails/#comment-30</link>
		<dc:creator>squarewheel</dc:creator>
		<pubDate>Tue, 17 Feb 2009 23:17:37 +0000</pubDate>
		<guid isPermaLink="false">http://squarewheel.wordpress.com/2007/11/03/session-cookie-expiration-time-in-rails/#comment-30</guid>
		<description>Fortunately I haven&#039;t been working with RoR for 7 months now, so I&#039;m a bit out-of-date on latest changes. It seems session handling had changed a lot in 2.3, the ``session`` method itself is deprecated now.

I&#039;ll look into the matter later this week, should be a simple matter of changing the plugin to use ``around_filter`` and modify the session cookie... though it might not.</description>
		<content:encoded><![CDATA[<p>Fortunately I haven&#8217;t been working with RoR for 7 months now, so I&#8217;m a bit out-of-date on latest changes. It seems session handling had changed a lot in 2.3, the &#8220;session&#8220; method itself is deprecated now.</p>
<p>I&#8217;ll look into the matter later this week, should be a simple matter of changing the plugin to use &#8220;around_filter&#8220; and modify the session cookie&#8230; though it might not.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Alberto</title>
		<link>http://squarewheel.wordpress.com/2007/11/03/session-cookie-expiration-time-in-rails/#comment-29</link>
		<dc:creator>Alberto</dc:creator>
		<pubDate>Tue, 17 Feb 2009 23:01:29 +0000</pubDate>
		<guid isPermaLink="false">http://squarewheel.wordpress.com/2007/11/03/session-cookie-expiration-time-in-rails/#comment-29</guid>
		<description>Quicker, I&#039;ve looked better on the Net and I&#039;ve found that alias_method_chain is deprecated from &gt; 2.1 (http://apidock.com/rails/Module/alias_method_chain). 
Google found some recent posts about that but my knowledge about ruby and rails is not so advanced so I don&#039;t know how to solve the problem.</description>
		<content:encoded><![CDATA[<p>Quicker, I&#8217;ve looked better on the Net and I&#8217;ve found that alias_method_chain is deprecated from &gt; 2.1 (<a href="http://apidock.com/rails/Module/alias_method_chain)" rel="nofollow">http://apidock.com/rails/Module/alias_method_chain)</a>.<br />
Google found some recent posts about that but my knowledge about ruby and rails is not so advanced so I don&#8217;t know how to solve the problem.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Alberto</title>
		<link>http://squarewheel.wordpress.com/2007/11/03/session-cookie-expiration-time-in-rails/#comment-28</link>
		<dc:creator>Alberto</dc:creator>
		<pubDate>Tue, 17 Feb 2009 22:45:34 +0000</pubDate>
		<guid isPermaLink="false">http://squarewheel.wordpress.com/2007/11/03/session-cookie-expiration-time-in-rails/#comment-28</guid>
		<description>Hi! I&#039;ve used your module with rails 2.1 and it works really well. But today I update rails to v2.3 and it stops working.
It gives me an error when starting my application:

rails/activesupport/lib/active_support/core_ext/module/aliasing.rb:33:in `alias_method&#039;: undefined method `set_session_options&#039; for class `ActionController::Base&#039; (NameError)
from .../rails/activesupport/lib/active_support/core_ext/module/aliasing.rb:33:in `alias_method_chain&#039;
from .../plugins/sliding_sessions/init.rb:11:in `included&#039;
from .../plugins/sliding_sessions/init.rb:10:in `class_eval&#039;
... and so on ...</description>
		<content:encoded><![CDATA[<p>Hi! I&#8217;ve used your module with rails 2.1 and it works really well. But today I update rails to v2.3 and it stops working.<br />
It gives me an error when starting my application:</p>
<p>rails/activesupport/lib/active_support/core_ext/module/aliasing.rb:33:in `alias_method&#8217;: undefined method `set_session_options&#8217; for class `ActionController::Base&#8217; (NameError)<br />
from &#8230;/rails/activesupport/lib/active_support/core_ext/module/aliasing.rb:33:in `alias_method_chain&#8217;<br />
from &#8230;/plugins/sliding_sessions/init.rb:11:in `included&#8217;<br />
from &#8230;/plugins/sliding_sessions/init.rb:10:in `class_eval&#8217;<br />
&#8230; and so on &#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Allan L.</title>
		<link>http://squarewheel.wordpress.com/2007/11/03/session-cookie-expiration-time-in-rails/#comment-27</link>
		<dc:creator>Allan L.</dc:creator>
		<pubDate>Sat, 20 Sep 2008 07:08:11 +0000</pubDate>
		<guid isPermaLink="false">http://squarewheel.wordpress.com/2007/11/03/session-cookie-expiration-time-in-rails/#comment-27</guid>
		<description>Your stuff works as advertised Rails 2.1.0, production environment.

Thank you for sharing this!</description>
		<content:encoded><![CDATA[<p>Your stuff works as advertised Rails 2.1.0, production environment.</p>
<p>Thank you for sharing this!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mo J.</title>
		<link>http://squarewheel.wordpress.com/2007/11/03/session-cookie-expiration-time-in-rails/#comment-24</link>
		<dc:creator>Mo J.</dc:creator>
		<pubDate>Fri, 27 Jun 2008 04:43:21 +0000</pubDate>
		<guid isPermaLink="false">http://squarewheel.wordpress.com/2007/11/03/session-cookie-expiration-time-in-rails/#comment-24</guid>
		<description>Thanks for that. Initial testing, works like a charm. Thanks for the info on why as well. Appreciate your promptness on the fix. If your ever in Melbourne, AU i&#039;ll buy you a beer</description>
		<content:encoded><![CDATA[<p>Thanks for that. Initial testing, works like a charm. Thanks for the info on why as well. Appreciate your promptness on the fix. If your ever in Melbourne, AU i&#8217;ll buy you a beer</p>
]]></content:encoded>
	</item>
</channel>
</rss>
