<?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>Wed, 09 Jul 2008 07:23:28 -0500</pubDate>
    <ttl>30</ttl>
    <item>
      <title><![CDATA[Lukas Smith's Blog: One thumb up and two down (Zend_Http_Client)]]></title>
      <guid>http://www.phpdeveloper.org/news/10418</guid>
      <link>http://www.phpdeveloper.org/news/10418</link>
      <description><![CDATA[<p>
Coming back from some <a href="http://www.phpdeveloper.org/news/10381">previous comments</a> about the Zend_Http_Client in the Zend Framework, <i>Lukas Smith</i> admits that a <a href="http://framework.zend.com/manual/en/zend.http.client.adapters.html#zend.http.client.adapters.proxy">certain feature</a> has come in handy with their development, but another bug has come up that has gotten under his skin - a problem with the component's cookie handling.
</p>
<blockquote>
We ran into a really hard to find <a href="http://framework.zend.com/issues/browse/ZF-1850">bug in the cookie handling</a> of Zend_Http_Client, which has been filed as a bug back in August 2007 against version 1.0.1 (today we are at 1.5.2). More over this is a bug that other similar packages have <a href="http://pear.php.net/bugs/bug.php?id=1080">gotten over in 2004</a>.
</blockquote>
<p>
He had to use <a href="http://www.wireshark.org/">wireshark</a> to finally track down the culprit - a call to urlencode on the contents of the cookie before sending it. He also includes some code to overcome a problem he had with UTF-16 in one of his feeds (a custom function that takes in and returns a string translated correctly).
</p>]]></description>
      <pubDate>Mon, 16 Jun 2008 09:32:24 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[PHPFreaks.com: Sessions and cookies: Adding state to a stateless protocol]]></title>
      <guid>http://www.phpdeveloper.org/news/10349</guid>
      <link>http://www.phpdeveloper.org/news/10349</link>
      <description><![CDATA[<p>
On the PHPFreaks website, there's a <a href="http://www.phpfreaks.com/tutorial/sessions-and-cookies-adding-state-to-a-stateless-protocol">new tutorial</a> talking about sessions and cookies in PHP:
</p>
<blockquote>
HTTP is a stateless protocol. This means that each request is handled independently of all the other requests and it means that a server or a script cannot remember if a user has been there before. However, knowing if a user has been there before is often required and therefore something known as cookies and sessions have been implemented in order to cope with that problem.
</blockquote>
<p>
The <a href="http://www.phpfreaks.com/tutorial/sessions-and-cookies-adding-state-to-a-stateless-protocol">tutorial</a> is pretty introductory, so if you're not new to the PHP world, you won't learn much. New developers, though, will learn how to set cookies, use sessions and learn a bit about the security of both.
</p>]]></description>
      <pubDate>Thu, 05 Jun 2008 12:05:11 -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>
    <item>
      <title><![CDATA[Stoyan Stefanov's Blog: www vs no-www and cookies]]></title>
      <guid>http://www.phpdeveloper.org/news/10182</guid>
      <link>http://www.phpdeveloper.org/news/10182</link>
      <description><![CDATA[<p>
<i>Stoyan Stefanov</i> has come up against one of the frustrations of web development involving cookies - problems caused by the switch from a "www." in the host to none. He's <a href="http://www.phpied.com/www-vs-no-www-and-cookies/">come up with a test</a> to show you how cookies are set and where you can access them from.
</p>
<blockquote>
One of the implications of following the rule is related to the whole <a href="http://www.sitepoint.com/blogs/2008/02/19/www-or-no-www/">www vs no-www</a> question. Basically you should always use www if you're planning to use any other sub-domains and you want them cookie-free. This is because you have no way to set a cookie only to the top-level domain.
</blockquote>
<p>
His code sets cookies for the ".phpied.com", "phpied.com" and "www.phpied.com" domains. Since the domains without the "www" offer a bit broader range of possible matches, he recommends that if you're ever going to use any kind of subdomain, you'll want to use the more broad cookie to cover it.
</p>]]></description>
      <pubDate>Wed, 14 May 2008 11:18:39 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[Ed Finkler's Blog: Encouraging steps towards security in Wordpress 2.5]]></title>
      <guid>http://www.phpdeveloper.org/news/9900</guid>
      <link>http://www.phpdeveloper.org/news/9900</link>
      <description><![CDATA[<p>
<i>Ed Finkler</i>, not normally a big fan of the <a href="http://www.wordpress.org">WordPress</a> PHP-based blogging system, has <a href="http://funkatron.com/site/comments/encouraging-steps-towards-security-in-wordpress-25/#When:18:15:00Z">pointed out</a> some positive steps that were made in the latest release in the security arena.
</p>
<blockquote>
Anyone who gets me liquored up knows that I'm not a fan of Wordpress. I think it's great from a user (that is, the person writing the content) standpoint, but it has lagged behind severely in terms of security, and I don't believe its popularity is the sole reason WP has been the subject of dozens of vulnerability reports every year. That being said, the WP 2.5 release appears to offer significant improvements in a couple areas: password hashes and cookie data encryption.
</blockquote>
<p>
He <a href="http://funkatron.com/site/comments/encouraging-steps-towards-security-in-wordpress-25/#When:18:15:00Z">mentions</a> two things in particular - their addition of salted passwords and secure cookies.
</p>]]></description>
      <pubDate>Wed, 02 Apr 2008 21:09:47 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[Brian Moon's Blog: Responsible use of the $_REQUEST variable]]></title>
      <guid>http://www.phpdeveloper.org/news/9466</guid>
      <link>http://www.phpdeveloper.org/news/9466</link>
      <description><![CDATA[<p>
In one of his <a href="http://doughboy.wordpress.com/2008/01/17/responsible-use-of-the-_request-variable/">recent blog entries</a>, <i>Brian Moon</i> takes a look at what he considers the "proper use" of the PHP superglobal $_REQUEST (as brought on by <a href="http://marc.info/?l=php-internals&m=119956617516891&w=2">a thread</a> on the PHP internals mailing list.
</p>
<blockquote>
I have seen more than one person make the following logic mistake: I may get data via GET, I may get data via POST - Ah, I should use $_REQUEST as it will catch both.
</blockquote>
<p>
<i>Brian</i> points out the error - cookies aren't in $_REQUEST so improper handling of those values could lead to cookie data overwriting GET/POST data from $_REQUEST. Several of the comments on the post also warn against improper handling of the values, noting that doing so could lead to holes open for attacks (like session fixation).
</p>]]></description>
      <pubDate>Tue, 22 Jan 2008 09:38:00 -0600</pubDate>
    </item>
  </channel>
</rss>
