<?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: Forcing SSL and HTTPS with Redirects on Symfony 1.2</title>
	<atom:link href="http://grahamc.com/blog/forcing-ssl-with-symfony-1-2/feed" rel="self" type="application/rss+xml" />
	<link>http://grahamc.com/blog/forcing-ssl-with-symfony-1-2</link>
	<description>All the whims and twiddly bits that catch my fancy.</description>
	<lastBuildDate>Fri, 09 Jul 2010 16:48:33 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
	<item>
		<title>By: Alaattin Kahramanlar</title>
		<link>http://grahamc.com/blog/forcing-ssl-with-symfony-1-2/comment-page-1#comment-1277</link>
		<dc:creator>Alaattin Kahramanlar</dc:creator>
		<pubDate>Tue, 04 May 2010 12:18:11 +0000</pubDate>
		<guid isPermaLink="false">http://iamgraham.net/?p=133#comment-1277</guid>
		<description>Ajax requests doesn&#039;t accept redirects, therefore I added following snippet at the beginning of the class.&lt;br&gt;&lt;br&gt;// Exclude ajax requests.&lt;br&gt;    if (isset($_SERVER[&#039;HTTP_X_REQUESTED_WITH&#039;]) &amp;&amp; $_SERVER[&#039;HTTP_X_REQUESTED_WITH&#039;] == &#039;XMLHttpRequest&#039;)&lt;br&gt;    {&lt;br&gt;      $filterChain-&gt;execute();&lt;br&gt;      return;&lt;br&gt;    }</description>
		<content:encoded><![CDATA[<p>Ajax requests doesn&#39;t accept redirects, therefore I added following snippet at the beginning of the class.</p>
<p>// Exclude ajax requests.<br />    if (isset($_SERVER[&#39;HTTP_X_REQUESTED_WITH&#39;]) &#038;&#038; $_SERVER[&#39;HTTP_X_REQUESTED_WITH&#39;] == &#39;XMLHttpRequest&#39;)<br />    {<br />      $filterChain-&gt;execute();<br />      return;<br />    }</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: nicoonee</title>
		<link>http://grahamc.com/blog/forcing-ssl-with-symfony-1-2/comment-page-1#comment-1266</link>
		<dc:creator>nicoonee</dc:creator>
		<pubDate>Mon, 15 Feb 2010 18:34:02 +0000</pubDate>
		<guid isPermaLink="false">http://iamgraham.net/?p=133#comment-1266</guid>
		<description>There is some mistake in Line 21 should be:
$modules = sfConfig::get(&#039;app_ssl_secure_actions&#039;);</description>
		<content:encoded><![CDATA[<p>There is some mistake in Line 21 should be:<br />
$modules = sfConfig::get(&#8216;app_ssl_secure_actions&#8217;);</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: quoc</title>
		<link>http://grahamc.com/blog/forcing-ssl-with-symfony-1-2/comment-page-1#comment-1263</link>
		<dc:creator>quoc</dc:creator>
		<pubDate>Mon, 18 Jan 2010 21:01:49 +0000</pubDate>
		<guid isPermaLink="false">http://iamgraham.net/?p=133#comment-1263</guid>
		<description>i am wondering what additional security benefits are being achieved which this plugin redirecting.

If the form data is first submitted over http (in clear text) than redirects to https, we are already sending sensitive data over the net in the first round trip.</description>
		<content:encoded><![CDATA[<p>i am wondering what additional security benefits are being achieved which this plugin redirecting.</p>
<p>If the form data is first submitted over http (in clear text) than redirects to https, we are already sending sensitive data over the net in the first round trip.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Michael</title>
		<link>http://grahamc.com/blog/forcing-ssl-with-symfony-1-2/comment-page-1#comment-1260</link>
		<dc:creator>Michael</dc:creator>
		<pubDate>Tue, 12 Jan 2010 12:32:04 +0000</pubDate>
		<guid isPermaLink="false">http://iamgraham.net/?p=133#comment-1260</guid>
		<description>Hi Graham,

sorry. I didn&#039;t know enough about symfony filters. I needed to place the configuration for the sslFilter before execution filter in the filters.yml file.

Thanks for the great post.

Regards,
Michael</description>
		<content:encoded><![CDATA[<p>Hi Graham,</p>
<p>sorry. I didn&#8217;t know enough about symfony filters. I needed to place the configuration for the sslFilter before execution filter in the filters.yml file.</p>
<p>Thanks for the great post.</p>
<p>Regards,<br />
Michael</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Michael</title>
		<link>http://grahamc.com/blog/forcing-ssl-with-symfony-1-2/comment-page-1#comment-1259</link>
		<dc:creator>Michael</dc:creator>
		<pubDate>Tue, 12 Jan 2010 05:29:10 +0000</pubDate>
		<guid isPermaLink="false">http://iamgraham.net/?p=133#comment-1259</guid>
		<description>Hi Graham,

I installed your filter as instructed, but from looking at the logs, it doesn&#039;t seem to be executing. 
Do you have any ideas on what I might be doing wrong?

Thanks,
Michael</description>
		<content:encoded><![CDATA[<p>Hi Graham,</p>
<p>I installed your filter as instructed, but from looking at the logs, it doesn&#8217;t seem to be executing.<br />
Do you have any ideas on what I might be doing wrong?</p>
<p>Thanks,<br />
Michael</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Nathan</title>
		<link>http://grahamc.com/blog/forcing-ssl-with-symfony-1-2/comment-page-1#comment-1255</link>
		<dc:creator>Nathan</dc:creator>
		<pubDate>Mon, 07 Dec 2009 20:00:44 +0000</pubDate>
		<guid isPermaLink="false">http://iamgraham.net/?p=133#comment-1255</guid>
		<description>@Ruddy: I experienced this as well and would suggest to the author to expand this filter to accomodate per-module &quot;strict&quot; options.

In the mean time, I made a small change to the filter to make an exception for my 404 module/action combination:

This:
if ($only_explicit &amp;&amp; $is_secure &amp;&amp; !$listed) {

Becomes this:
if ($only_explicit &amp;&amp; $is_secure &amp;&amp; !$listed) &amp;&amp; !($module_name == &#039;my404module&#039; &amp;&amp; $action_name == &#039;my404action&#039;)) {</description>
		<content:encoded><![CDATA[<p>@Ruddy: I experienced this as well and would suggest to the author to expand this filter to accomodate per-module &#8220;strict&#8221; options.</p>
<p>In the mean time, I made a small change to the filter to make an exception for my 404 module/action combination:</p>
<p>This:<br />
if ($only_explicit &amp;&amp; $is_secure &amp;&amp; !$listed) {</p>
<p>Becomes this:<br />
if ($only_explicit &amp;&amp; $is_secure &amp;&amp; !$listed) &amp;&amp; !($module_name == &#8216;my404module&#8217; &amp;&amp; $action_name == &#8216;my404action&#8217;)) {</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ruddy</title>
		<link>http://grahamc.com/blog/forcing-ssl-with-symfony-1-2/comment-page-1#comment-1157</link>
		<dc:creator>Ruddy</dc:creator>
		<pubDate>Mon, 19 Oct 2009 07:33:22 +0000</pubDate>
		<guid isPermaLink="false">http://iamgraham.net/?p=133#comment-1157</guid>
		<description>This stuff can cause an infinite loop if :
- you use forward404 in a secure action
- you overwrite your 404 action to home/error404 for example which is not secure...

We really need to have the strict option there but have to be able to setup a strict option per module also instead of a global setting.
So, I can have strict=false for home/error404 which needs to be display in secure and non-secure fashion</description>
		<content:encoded><![CDATA[<p>This stuff can cause an infinite loop if :<br />
- you use forward404 in a secure action<br />
- you overwrite your 404 action to home/error404 for example which is not secure&#8230;</p>
<p>We really need to have the strict option there but have to be able to setup a strict option per module also instead of a global setting.<br />
So, I can have strict=false for home/error404 which needs to be display in secure and non-secure fashion</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: j.org</title>
		<link>http://grahamc.com/blog/forcing-ssl-with-symfony-1-2/comment-page-1#comment-1107</link>
		<dc:creator>j.org</dc:creator>
		<pubDate>Thu, 01 Oct 2009 11:06:39 +0000</pubDate>
		<guid isPermaLink="false">http://iamgraham.net/?p=133#comment-1107</guid>
		<description>I am facing the same task currently and this post helps me a lot (and also Jesteps). But I&#039;m wondering whether there&#039;s a automatic way to include additional behaviour to the provided redirection solution (which is fine for directly typed links and so on). Specifically I really would like to have urls generated with the url_for, link_to helper group to automatically reference the https protocol depending on the given application configuration.

I read about hacks been applied to older versions of symfony achieving this, but I guess there has to be a proper way of overloading gen_url.

This way the mentioned problem regarding post requests (on login forms for example) wouldn&#039;t occur, given that the &quot;action&quot; attribute was generated with one of the said methods.

Best regards</description>
		<content:encoded><![CDATA[<p>I am facing the same task currently and this post helps me a lot (and also Jesteps). But I&#8217;m wondering whether there&#8217;s a automatic way to include additional behaviour to the provided redirection solution (which is fine for directly typed links and so on). Specifically I really would like to have urls generated with the url_for, link_to helper group to automatically reference the https protocol depending on the given application configuration.</p>
<p>I read about hacks been applied to older versions of symfony achieving this, but I guess there has to be a proper way of overloading gen_url.</p>
<p>This way the mentioned problem regarding post requests (on login forms for example) wouldn&#8217;t occur, given that the &#8220;action&#8221; attribute was generated with one of the said methods.</p>
<p>Best regards</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Graham Christensen</title>
		<link>http://grahamc.com/blog/forcing-ssl-with-symfony-1-2/comment-page-1#comment-36</link>
		<dc:creator>Graham Christensen</dc:creator>
		<pubDate>Wed, 02 Sep 2009 01:54:16 +0000</pubDate>
		<guid isPermaLink="false">http://iamgraham.net/?p=133#comment-36</guid>
		<description>Unfortunately, as far as I know it isn&#039;t possible to re-send the POST information. Since it is a POST request and not a GET request, they can&#039;t be passed through the URL. Also, the sfSslRequirementPlugin for Symfony, also didn&#039;t implement this feature. as far as I can tell.  Although, if you find a way to address that issue - please let me know.

Good catch, I hadn&#039;t even thought about that.

Graham</description>
		<content:encoded><![CDATA[<p>Unfortunately, as far as I know it isn&#8217;t possible to re-send the POST information. Since it is a POST request and not a GET request, they can&#8217;t be passed through the URL. Also, the sfSslRequirementPlugin for Symfony, also didn&#8217;t implement this feature. as far as I can tell.  Although, if you find a way to address that issue &#8211; please let me know.</p>
<p>Good catch, I hadn&#8217;t even thought about that.</p>
<p>Graham</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jestep</title>
		<link>http://grahamc.com/blog/forcing-ssl-with-symfony-1-2/comment-page-1#comment-35</link>
		<dc:creator>Jestep</dc:creator>
		<pubDate>Tue, 01 Sep 2009 23:46:42 +0000</pubDate>
		<guid isPermaLink="false">http://iamgraham.net/?p=133#comment-35</guid>
		<description>One thing that I didn&#039;t address in my script, and it looks like isn&#039;t covered in yours either, was if POST requests are redirected. Since the post variables wont get forwarded to the secure version of the page, it&#039;s possible to cause some major usability problems.</description>
		<content:encoded><![CDATA[<p>One thing that I didn&#8217;t address in my script, and it looks like isn&#8217;t covered in yours either, was if POST requests are redirected. Since the post variables wont get forwarded to the secure version of the page, it&#8217;s possible to cause some major usability problems.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
