<?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 Objects and Sessions</title>
	<atom:link href="http://webninja.org/archives/86/feed" rel="self" type="application/rss+xml" />
	<link>http://webninja.org/archives/86</link>
	<description>The digital biography of Justin King</description>
	<lastBuildDate>Sat, 04 Sep 2010 01:03:21 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
	<item>
		<title>By: Konr Ness</title>
		<link>http://webninja.org/archives/86/comment-page-1#comment-3481</link>
		<dc:creator>Konr Ness</dc:creator>
		<pubDate>Sat, 04 Sep 2010 01:03:21 +0000</pubDate>
		<guid isPermaLink="false">http://webninja.org/?p=86#comment-3481</guid>
		<description>Yes, this is a problem if the class isn&#039;t included before the session starts. But, if the class you&#039;re serializing into the session is in a Zend Framework autoloader namespace, this will fix the problem.

For instance, if you had MyProject_Cows in the library directory as /library/MyProject/Cows.php, and then add the following to your application.ini:
autoloaderNamespaces[] = MyProject_

The autoloader is setup before the session is started. When the session is unserialized it would attempt to find the MyProject_Cows class and the autoloader would be called to include it. Problem solved.</description>
		<content:encoded><![CDATA[<p>Yes, this is a problem if the class isn&#8217;t included before the session starts. But, if the class you&#8217;re serializing into the session is in a Zend Framework autoloader namespace, this will fix the problem.</p>
<p>For instance, if you had MyProject_Cows in the library directory as /library/MyProject/Cows.php, and then add the following to your application.ini:<br />
autoloaderNamespaces[] = MyProject_</p>
<p>The autoloader is setup before the session is started. When the session is unserialized it would attempt to find the MyProject_Cows class and the autoloader would be called to include it. Problem solved.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: mrBlaQ</title>
		<link>http://webninja.org/archives/86/comment-page-1#comment-3459</link>
		<dc:creator>mrBlaQ</dc:creator>
		<pubDate>Thu, 12 Mar 2009 21:54:01 +0000</pubDate>
		<guid isPermaLink="false">http://webninja.org/?p=86#comment-3459</guid>
		<description>I think u should go back to the tried and true method of shuffling hundreds of serialized objects in every single one of your $_GET requests.</description>
		<content:encoded><![CDATA[<p>I think u should go back to the tried and true method of shuffling hundreds of serialized objects in every single one of your $_GET requests.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Wil Sinclair</title>
		<link>http://webninja.org/archives/86/comment-page-1#comment-3450</link>
		<dc:creator>Wil Sinclair</dc:creator>
		<pubDate>Thu, 11 Dec 2008 23:53:25 +0000</pubDate>
		<guid isPermaLink="false">http://webninja.org/?p=86#comment-3450</guid>
		<description>That looks pretty hacky. Maybe we should handle this use case in ZF. You can create an issue  in our issue tracker for community discussion and/or start a thread on the general list.</description>
		<content:encoded><![CDATA[<p>That looks pretty hacky. Maybe we should handle this use case in ZF. You can create an issue  in our issue tracker for community discussion and/or start a thread on the general list.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

