<?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>Fri, 24 May 2013 08:17:44 -0500</pubDate>
    <ttl>30</ttl>
    <item>
      <title><![CDATA[DevShed: Storing PHP Sessions in a Database]]></title>
      <guid>http://www.phpdeveloper.org/news/7755</guid>
      <link>http://www.phpdeveloper.org/news/7755</link>
      <description><![CDATA[<p>
Taking a break from some of the design patterns tutorials they've been posting, DevShed shows how, in <a href="http://www.devshed.com/c/a/PHP/Storing-PHP-Sessions-in-a-Database/">this new article</a> to easily create a system to store the sessions for your users into a database versus the usual file system route.
</p>
<blockquote>
<p>
There are many reasons to utilize sessions when creating a web-based application using PHP. Session information, by default, is stored in a file on your web server. But what if that becomes a problem? In this article, I'll talk about why you might want to move your PHP sessions to a database, and show you how to do it.
</p>
</blockquote>
<p>
They start off <a href="http://www.devshed.com/c/a/PHP/Storing-PHP-Sessions-in-a-Database/1/">looking  at</a> the limitations of normal session handling (when it comes to multiple web servers), making special note of the function that can make database session handling easy - session_set_save_handler. From there on out, the tutorial takes you through the setup of a SessionManager class and int implementation - including examples of reading, writing, and cleaning up data from expires sessions.
</p>]]></description>
      <pubDate>Wed, 02 May 2007 10:56:00 -0500</pubDate>
    </item>
  </channel>
</rss>
