<?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, 04 Dec 2008 11:14:33 -0600</pubDate>
    <ttl>30</ttl>
    <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[PHP-Learn-It.com: Cooking Cookies with PHP]]></title>
      <guid>http://www.phpdeveloper.org/news/8623</guid>
      <link>http://www.phpdeveloper.org/news/8623</link>
      <description><![CDATA[<p>
On PHP-Learn-It.com today, there's <a href="http://www.php-learn-it.com/php_cookies.html">a new tutorial</a> looking to get you, the budding PHP developer, into working with cookies in PHP.
</p>
<blockquote>
A cookie is often used to store data which can be used to identify a user, for example, person's username. [...] In this tutorial, we will learn how to write, read and delete cookies in PHP.
</blockquote>
<p>
They show how to create the cookie (with set_cookie) - both one that will timeout when the browser closes and one that stays after - how to read the value from them and how to remove them by setting the data in the past.
</p>]]></description>
      <pubDate>Mon, 10 Sep 2007 15:10:52 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[Ilia Alshanetsky's Blog: httpOnly cookie flag support in PHP 5.2]]></title>
      <guid>http://www.phpdeveloper.org/news/6007</guid>
      <link>http://www.phpdeveloper.org/news/6007</link>
      <description><![CDATA[<p>
<i>Ilia Alshanetsky</i> has posted today about <a href="http://ilia.ws/archives/121-httpOnly-cookie-flag-support-in-PHP-5.2.html">a new patch</a> that's been applied to the PHP 5.2 source (in CVS) to include support for the "httpOnly" cookie flag in its cookie handling.
</p>
<blockquote>
Thanks to a patch from Scott MacVicar that I've just applied to CVS, PHP 5.2 will have support for httpOnly cookie flag. This neat little feature allows you to mark a newly created cookie as HTTP only, another words inaccessible to browser based scripting languages such as JavaScript. This means it would become far more difficult, if not impossible to steal a user's cookie based session by injecting JavaScript into a page and then using to read cookies.
</blockquote>
<p>
Definitely a most excellent development! He <a href="http://ilia.ws/archives/121-httpOnly-cookie-flag-support-in-PHP-5.2.html">includes some code examples</a> to show how it will be used, as a seventh parameter to the setcookie/setrawcookie functions (TRUE/FALSE). You can also use an ini_set to make the session cookie behave the same way.
</p>
<p>
Oh, and PHP4 and 5.1 users can do the same thing of thing, just not as elegantly, with a header call to Set-Cookie manually.
</p>]]></description>
      <pubDate>Fri, 11 Aug 2006 07:20:14 -0500</pubDate>
    </item>
  </channel>
</rss>
