<?xml version="1.0"?>
<rss version="2.0">
  <channel>
    <title>PHPDeveloper.org</title>
    <link>http://www.phpdeveloper.org</link>
    <description>Up-to-the Minute PHP News, views and community</description>
    <language>en-us</language>
    <pubDate>Thu, 23 May 2013 13:19:29 -0500</pubDate>
    <ttl>30</ttl>
    <item>
      <title><![CDATA[SmartyCode.com: Enable your Zend Framework App with Conditional GET! (Make it green) ]]></title>
      <guid>http://www.phpdeveloper.org/news/12217</guid>
      <link>http://www.phpdeveloper.org/news/12217</link>
      <description><![CDATA[<p>
On the SmartyCode.com site there's a <a href="http://smartycode.com/performance/zend-framework-browser-caching/">quick new post</a> about making your Zend Framework site a bit more "green" with a conditional GET feature.
</p>
<blockquote>
In this article I'll show you a simple approach to enable your Zend Framework application saving lots of precious bandwidth, and thus, making it more end-users friendly, and save on bandwidth costs. This technique involves HTTP conditional GET. This is basically a feature of the HTTP protocol. By sending correct HTTP headers with your application, you enable browsers of your end users to cache pages of your site.
</blockquote>
<p>
A plugin for the front controller (with a dispatchLoopShutdown method inside) is used to handle the requests and cache their content correctly. They have the cache set at 7200 seconds (2 hours) for a time to live, but its easy to tweak it based on your application. TO use the plugin call the registerPlugin function on the controller object and add it as the very last thing that runs.
</p>]]></description>
      <pubDate>Thu, 26 Mar 2009 14:25:59 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[Brian Moon's Blog: PHP session cookie refresh]]></title>
      <guid>http://www.phpdeveloper.org/news/10184</guid>
      <link>http://www.phpdeveloper.org/news/10184</link>
      <description><![CDATA[<p>
<i>Brian Moon</i> has <a href="http://doughboy.wordpress.com/2008/05/14/php-session-cookie-refresh/">posted a tip</a> (and a bit of code) he's worked up to help make a users cookies last a bit longer than they were originally designed to:
</p>
<blockquote>
When you start a session, if the user had no cookie, they get a new session id and they get a cookie. You can configure that cookie to last for n seconds via php.ini or session_cookie_set_params(). But, and this is a HUGE but for me, that cookie will expire in n seconds no matter what.
</blockquote>
<p>
His method provides a way to extend the life of the cookies currently set for the domain by changing the time to live through a series of ini_get calls wrapped in a setcookie() call.
</p>]]></description>
      <pubDate>Wed, 14 May 2008 12:51:02 -0500</pubDate>
    </item>
  </channel>
</rss>
