<?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: PHP Sessions &#8211; Files vs Database Based</title>
	<atom:link href="http://www.mysqlperformanceblog.com/2007/03/27/php-sessions-files-vs-database-based/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.mysqlperformanceblog.com/2007/03/27/php-sessions-files-vs-database-based/</link>
	<description>Everything about MySQL Performance</description>
	<lastBuildDate>Sat, 21 Nov 2009 05:23:57 -0800</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.4</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Digital Lynx</title>
		<link>http://www.mysqlperformanceblog.com/2007/03/27/php-sessions-files-vs-database-based/comment-page-1/#comment-598844</link>
		<dc:creator>Digital Lynx</dc:creator>
		<pubDate>Sun, 28 Jun 2009 14:20:49 +0000</pubDate>
		<guid isPermaLink="false">http://www.mysqlperformanceblog.com/2007/03/27/php-sessions-files-vs-database-based/#comment-598844</guid>
		<description>Hey, nice article.  I&#039;ve tried doing something similar in a project of mine using something called mSess from:

http://www.virtualthinking.com/loadhtml.php?where=scripts&amp;what=art_show.php&amp;db_target=00000000024

It doesn&#039;t implement a custom session handler, but it works in a similar manner, and has the added benefit of being able to work with traditional PHP sessions at the same time.  Fairly easy to use if you use the sample files as a reference.

It&#039;s a CC based license so it&#039;s flexible to incorporate.</description>
		<content:encoded><![CDATA[<p>Hey, nice article.  I&#8217;ve tried doing something similar in a project of mine using something called mSess from:</p>
<p><a href="http://www.virtualthinking.com/loadhtml.php?where=scripts&amp;what=art_show.php&amp;db_target=00000000024" rel="nofollow">http://www.virtualthinking.com/loadhtml.php?where=scripts&amp;what=art_show.php&amp;db_target=00000000024</a></p>
<p>It doesn&#8217;t implement a custom session handler, but it works in a similar manner, and has the added benefit of being able to work with traditional PHP sessions at the same time.  Fairly easy to use if you use the sample files as a reference.</p>
<p>It&#8217;s a CC based license so it&#8217;s flexible to incorporate.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: PHP Sessions - Files vs Database Based &#124; MySQL Performance Blog</title>
		<link>http://www.mysqlperformanceblog.com/2007/03/27/php-sessions-files-vs-database-based/comment-page-1/#comment-576552</link>
		<dc:creator>PHP Sessions - Files vs Database Based &#124; MySQL Performance Blog</dc:creator>
		<pubDate>Sat, 06 Jun 2009 11:59:04 +0000</pubDate>
		<guid isPermaLink="false">http://www.mysqlperformanceblog.com/2007/03/27/php-sessions-files-vs-database-based/#comment-576552</guid>
		<description>[...] PHP Sessions - Files vs Database Based &#124; MySQL Performance Blog   Share and [...]</description>
		<content:encoded><![CDATA[<p>[...] PHP Sessions &#8211; Files vs Database Based | MySQL Performance Blog   Share and [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: iko</title>
		<link>http://www.mysqlperformanceblog.com/2007/03/27/php-sessions-files-vs-database-based/comment-page-1/#comment-520891</link>
		<dc:creator>iko</dc:creator>
		<pubDate>Fri, 27 Mar 2009 12:42:52 +0000</pubDate>
		<guid isPermaLink="false">http://www.mysqlperformanceblog.com/2007/03/27/php-sessions-files-vs-database-based/#comment-520891</guid>
		<description>Only consistent way how to count users online, if sessions are stored in memcached is
to have your own session handler and implement full database backup, so new sessions are also created in db as references and cleaned standard way if memcache session is destroyed in runtime or by garbage collector. Under these conditions you can use standard queries to retrieve number of users online and other usefull stats that are problematic to get from MC.
You can also create file based backup with simple counter (tried it myself and works), depends what level of flexibility and possible statistics you want to have.

Another approach is to create backend collector that fetches content of MC server and stores results in MC object. This is however against MC nature, so i would stick with DB or file backup.</description>
		<content:encoded><![CDATA[<p>Only consistent way how to count users online, if sessions are stored in memcached is<br />
to have your own session handler and implement full database backup, so new sessions are also created in db as references and cleaned standard way if memcache session is destroyed in runtime or by garbage collector. Under these conditions you can use standard queries to retrieve number of users online and other usefull stats that are problematic to get from MC.<br />
You can also create file based backup with simple counter (tried it myself and works), depends what level of flexibility and possible statistics you want to have.</p>
<p>Another approach is to create backend collector that fetches content of MC server and stores results in MC object. This is however against MC nature, so i would stick with DB or file backup.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: myth-genius</title>
		<link>http://www.mysqlperformanceblog.com/2007/03/27/php-sessions-files-vs-database-based/comment-page-1/#comment-438531</link>
		<dc:creator>myth-genius</dc:creator>
		<pubDate>Thu, 08 Jan 2009 08:19:38 +0000</pubDate>
		<guid isPermaLink="false">http://www.mysqlperformanceblog.com/2007/03/27/php-sessions-files-vs-database-based/#comment-438531</guid>
		<description>session store memcache is a problem :count sessions ?????how to?????</description>
		<content:encoded><![CDATA[<p>session store memcache is a problem :count sessions ?????how to?????</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Worse than DDOS &#124; MySQL Performance Blog</title>
		<link>http://www.mysqlperformanceblog.com/2007/03/27/php-sessions-files-vs-database-based/comment-page-1/#comment-346347</link>
		<dc:creator>Worse than DDOS &#124; MySQL Performance Blog</dc:creator>
		<pubDate>Tue, 19 Aug 2008 06:55:20 +0000</pubDate>
		<guid isPermaLink="false">http://www.mysqlperformanceblog.com/2007/03/27/php-sessions-files-vs-database-based/#comment-346347</guid>
		<description>[...] of PHP sessions &#8220;files&#8221; handler  I already wrote about this topic, but when troubleshooting this all takes another angle. Default file handler means [...]</description>
		<content:encoded><![CDATA[<p>[...] of PHP sessions &#8220;files&#8221; handler  I already wrote about this topic, but when troubleshooting this all takes another angle. Default file handler means [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Pramod Mane</title>
		<link>http://www.mysqlperformanceblog.com/2007/03/27/php-sessions-files-vs-database-based/comment-page-1/#comment-330235</link>
		<dc:creator>Pramod Mane</dc:creator>
		<pubDate>Thu, 17 Jul 2008 16:18:36 +0000</pubDate>
		<guid isPermaLink="false">http://www.mysqlperformanceblog.com/2007/03/27/php-sessions-files-vs-database-based/#comment-330235</guid>
		<description>Hi,

This is what i was looking for my new site. 

Simple setting in php.ini file</description>
		<content:encoded><![CDATA[<p>Hi,</p>
<p>This is what i was looking for my new site. </p>
<p>Simple setting in php.ini file</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Pramod</title>
		<link>http://www.mysqlperformanceblog.com/2007/03/27/php-sessions-files-vs-database-based/comment-page-1/#comment-330230</link>
		<dc:creator>Pramod</dc:creator>
		<pubDate>Thu, 17 Jul 2008 16:13:31 +0000</pubDate>
		<guid isPermaLink="false">http://www.mysqlperformanceblog.com/2007/03/27/php-sessions-files-vs-database-based/#comment-330230</guid>
		<description>Hi, 

Looks like a great article as i want hunting for sharing the same sessions over subdomains.

(Pramod Mane)</description>
		<content:encoded><![CDATA[<p>Hi, </p>
<p>Looks like a great article as i want hunting for sharing the same sessions over subdomains.</p>
<p>(Pramod Mane)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: bash</title>
		<link>http://www.mysqlperformanceblog.com/2007/03/27/php-sessions-files-vs-database-based/comment-page-1/#comment-180951</link>
		<dc:creator>bash</dc:creator>
		<pubDate>Wed, 24 Oct 2007 19:03:49 +0000</pubDate>
		<guid isPermaLink="false">http://www.mysqlperformanceblog.com/2007/03/27/php-sessions-files-vs-database-based/#comment-180951</guid>
		<description>Yes, memcached is great, but it is a cache nonetheless that is stored in memory. In case you run out of memory for the memcached daemon, your session data might end up getting garbage collected. I personally recommend using an memcached session handler backed by a mysql database.</description>
		<content:encoded><![CDATA[<p>Yes, memcached is great, but it is a cache nonetheless that is stored in memory. In case you run out of memory for the memcached daemon, your session data might end up getting garbage collected. I personally recommend using an memcached session handler backed by a mysql database.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Learn PHP</title>
		<link>http://www.mysqlperformanceblog.com/2007/03/27/php-sessions-files-vs-database-based/comment-page-1/#comment-170441</link>
		<dc:creator>Learn PHP</dc:creator>
		<pubDate>Fri, 21 Sep 2007 03:35:27 +0000</pubDate>
		<guid isPermaLink="false">http://www.mysqlperformanceblog.com/2007/03/27/php-sessions-files-vs-database-based/#comment-170441</guid>
		<description>Wow! i just read about memcached in post made by some earlier. I need to read up on memcached for caching and even storing sessions an d cookies</description>
		<content:encoded><![CDATA[<p>Wow! i just read about memcached in post made by some earlier. I need to read up on memcached for caching and even storing sessions an d cookies</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: PHP Sessions</title>
		<link>http://www.mysqlperformanceblog.com/2007/03/27/php-sessions-files-vs-database-based/comment-page-1/#comment-170440</link>
		<dc:creator>PHP Sessions</dc:creator>
		<pubDate>Fri, 21 Sep 2007 03:32:19 +0000</pubDate>
		<guid isPermaLink="false">http://www.mysqlperformanceblog.com/2007/03/27/php-sessions-files-vs-database-based/#comment-170440</guid>
		<description>For security purpose i also to save sessions in database rather than using flat files. Thou you would delete the file when you delete your sessions, but the file will remains readable by any script or human.</description>
		<content:encoded><![CDATA[<p>For security purpose i also to save sessions in database rather than using flat files. Thou you would delete the file when you delete your sessions, but the file will remains readable by any script or human.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
