<?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: Important database session limitation</title>
	<atom:link href="http://nuts-and-bolts-of-cakephp.com/2010/07/07/important-database-session-limitation/feed/" rel="self" type="application/rss+xml" />
	<link>http://nuts-and-bolts-of-cakephp.com/2010/07/07/important-database-session-limitation/</link>
	<description></description>
	<lastBuildDate>Thu, 02 Feb 2012 09:32:41 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
	<item>
		<title>By: teknoid</title>
		<link>http://nuts-and-bolts-of-cakephp.com/2010/07/07/important-database-session-limitation/#comment-11296</link>
		<dc:creator>teknoid</dc:creator>
		<pubDate>Wed, 02 Feb 2011 17:37:26 +0000</pubDate>
		<guid isPermaLink="false">http://teknoid.wordpress.com/?p=1022#comment-11296</guid>
		<description>@Cristiano 
Whole model... or model data?
I would not recommend storing the entire object in the session. As far as any special chars, whenever information is saved into the DB cake takes special care of escaping all fields and values.</description>
		<content:encoded><![CDATA[<p>@Cristiano<br />
Whole model&#8230; or model data?<br />
I would not recommend storing the entire object in the session. As far as any special chars, whenever information is saved into the DB cake takes special care of escaping all fields and values.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Cristiano</title>
		<link>http://nuts-and-bolts-of-cakephp.com/2010/07/07/important-database-session-limitation/#comment-11295</link>
		<dc:creator>Cristiano</dc:creator>
		<pubDate>Wed, 02 Feb 2011 16:39:25 +0000</pubDate>
		<guid isPermaLink="false">http://teknoid.wordpress.com/?p=1022#comment-11295</guid>
		<description>Consider that you are storing a whole model on the session and this model already has some html or special chars in it. Wouldn&#039;t this break the db session in a similar way that a sql injection would do with a database?</description>
		<content:encoded><![CDATA[<p>Consider that you are storing a whole model on the session and this model already has some html or special chars in it. Wouldn&#8217;t this break the db session in a similar way that a sql injection would do with a database?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: teknoid</title>
		<link>http://nuts-and-bolts-of-cakephp.com/2010/07/07/important-database-session-limitation/#comment-11248</link>
		<dc:creator>teknoid</dc:creator>
		<pubDate>Fri, 24 Dec 2010 22:30:19 +0000</pubDate>
		<guid isPermaLink="false">http://teknoid.wordpress.com/?p=1022#comment-11248</guid>
		<description>@Michael 

Remember that cake serializes the session object data. One known issue (perhaps in older versions) of PHP is that serialization can fail when certain (null or empty line) characters are stored in the session. Unfortunately I don&#039;t have a link handy, but a little googlin&#039; might give more insight.</description>
		<content:encoded><![CDATA[<p>@Michael </p>
<p>Remember that cake serializes the session object data. One known issue (perhaps in older versions) of PHP is that serialization can fail when certain (null or empty line) characters are stored in the session. Unfortunately I don&#8217;t have a link handy, but a little googlin&#8217; might give more insight.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Michael</title>
		<link>http://nuts-and-bolts-of-cakephp.com/2010/07/07/important-database-session-limitation/#comment-11246</link>
		<dc:creator>Michael</dc:creator>
		<pubDate>Fri, 24 Dec 2010 11:40:37 +0000</pubDate>
		<guid isPermaLink="false">http://teknoid.wordpress.com/?p=1022#comment-11246</guid>
		<description>One benefit to store sessions in DB is using cluster for web site and two DBs with master to master replication. We&#039;re trying to setup it. But by some reason session is stored partially. Even with LONGTEXT data field. Have no idea why.</description>
		<content:encoded><![CDATA[<p>One benefit to store sessions in DB is using cluster for web site and two DBs with master to master replication. We&#8217;re trying to setup it. But by some reason session is stored partially. Even with LONGTEXT data field. Have no idea why.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: seozest</title>
		<link>http://nuts-and-bolts-of-cakephp.com/2010/07/07/important-database-session-limitation/#comment-10397</link>
		<dc:creator>seozest</dc:creator>
		<pubDate>Wed, 21 Jul 2010 10:58:02 +0000</pubDate>
		<guid isPermaLink="false">http://teknoid.wordpress.com/?p=1022#comment-10397</guid>
		<description>Great info.Thanks for sharing
Use of sessions for DB is new for me.</description>
		<content:encoded><![CDATA[<p>Great info.Thanks for sharing<br />
Use of sessions for DB is new for me.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dan</title>
		<link>http://nuts-and-bolts-of-cakephp.com/2010/07/07/important-database-session-limitation/#comment-10289</link>
		<dc:creator>Dan</dc:creator>
		<pubDate>Thu, 08 Jul 2010 05:23:57 +0000</pubDate>
		<guid isPermaLink="false">http://teknoid.wordpress.com/?p=1022#comment-10289</guid>
		<description>Good to know. This is probably one of those things that I or a friend will run into at some point. Thanks for the tip.</description>
		<content:encoded><![CDATA[<p>Good to know. This is probably one of those things that I or a friend will run into at some point. Thanks for the tip.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: teknoid</title>
		<link>http://nuts-and-bolts-of-cakephp.com/2010/07/07/important-database-session-limitation/#comment-10288</link>
		<dc:creator>teknoid</dc:creator>
		<pubDate>Wed, 07 Jul 2010 22:20:45 +0000</pubDate>
		<guid isPermaLink="false">http://teknoid.wordpress.com/?p=1022#comment-10288</guid>
		<description>@Mauro Zadunaisky

No problem.

Well, one benefit is that we already have proper fail-over and redundancy for our DB, and because we have multiple web servers we need a single point of storage. Prior to that we used memcache, but found it to be a little unreliable (I can&#039;t really get into much detail, since I don&#039;t know all the specifics). Again, we&#039;d need to setup proper fail-over for memcache servers, which adds an extra level of maintenance and unnecessary complexity, at least for the time being.

Another benefit to using the DB is that you can further extend the session handling to &quot;remember&quot; users&#039; shopping carts, or preform additional analysis. (Since your data is in a relational DB, it makes extending base functionality a bit easier).

Performance-wise we didn&#039;t see any difference one way or another.</description>
		<content:encoded><![CDATA[<p>@Mauro Zadunaisky</p>
<p>No problem.</p>
<p>Well, one benefit is that we already have proper fail-over and redundancy for our DB, and because we have multiple web servers we need a single point of storage. Prior to that we used memcache, but found it to be a little unreliable (I can&#8217;t really get into much detail, since I don&#8217;t know all the specifics). Again, we&#8217;d need to setup proper fail-over for memcache servers, which adds an extra level of maintenance and unnecessary complexity, at least for the time being.</p>
<p>Another benefit to using the DB is that you can further extend the session handling to &#8220;remember&#8221; users&#8217; shopping carts, or preform additional analysis. (Since your data is in a relational DB, it makes extending base functionality a bit easier).</p>
<p>Performance-wise we didn&#8217;t see any difference one way or another.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mauro Zadunaisky</title>
		<link>http://nuts-and-bolts-of-cakephp.com/2010/07/07/important-database-session-limitation/#comment-10287</link>
		<dc:creator>Mauro Zadunaisky</dc:creator>
		<pubDate>Wed, 07 Jul 2010 22:03:17 +0000</pubDate>
		<guid isPermaLink="false">http://teknoid.wordpress.com/?p=1022#comment-10287</guid>
		<description>Great tip, thank you!

Why are you using database for session storage? What&#039;s the benefif? security? perfomance?</description>
		<content:encoded><![CDATA[<p>Great tip, thank you!</p>
<p>Why are you using database for session storage? What&#8217;s the benefif? security? perfomance?</p>
]]></content:encoded>
	</item>
</channel>
</rss>

