<?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: Zend Amf now with php session support</title>
	<atom:link href="http://wadearnold.com/blog/flash/zend-amf-now-with-php-session-support/feed" rel="self" type="application/rss+xml" />
	<link>http://wadearnold.com/blog/flash/zend-amf-now-with-php-session-support</link>
	<description>The spoils of the integration of PHP and ActionScript</description>
	<lastBuildDate>Wed, 24 Feb 2010 08:48:53 -0600</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.4</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: saltamontez</title>
		<link>http://wadearnold.com/blog/flash/zend-amf-now-with-php-session-support/comment-page-1#comment-9402</link>
		<dc:creator>saltamontez</dc:creator>
		<pubDate>Mon, 25 Jan 2010 15:42:26 +0000</pubDate>
		<guid isPermaLink="false">http://wadearnold.com/blog/?p=182#comment-9402</guid>
		<description>Your example doesn´t work Firefox 3.5.7 and IE 8.8.76 so it seems. The flex example code is not displayed either. I´m really trying to make ends meet here but no luck. I put my AMF endpoint under an indexAction in my AmfController. I tweaked the code generated by Flashbuilder (gateway.php) so I can use the data-centric-development features. I got everything running so far but the session keeps getting lost.</description>
		<content:encoded><![CDATA[<p>Your example doesn´t work Firefox 3.5.7 and IE 8.8.76 so it seems. The flex example code is not displayed either. I´m really trying to make ends meet here but no luck. I put my AMF endpoint under an indexAction in my AmfController. I tweaked the code generated by Flashbuilder (gateway.php) so I can use the data-centric-development features. I got everything running so far but the session keeps getting lost.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Martin</title>
		<link>http://wadearnold.com/blog/flash/zend-amf-now-with-php-session-support/comment-page-1#comment-2591</link>
		<dc:creator>Martin</dc:creator>
		<pubDate>Thu, 14 May 2009 11:11:17 +0000</pubDate>
		<guid isPermaLink="false">http://wadearnold.com/blog/?p=182#comment-2591</guid>
		<description>Hi Wade,
Your example doesn&#039;t work. I got my script to work but I get that line in my gateway file (where echo $server-&gt;handle(); is): 
AppendToGatewayUrl+?PHPSESSID=3fd770e188676605437223ab67c65370

Is that normal?

Thanks for your work!</description>
		<content:encoded><![CDATA[<p>Hi Wade,<br />
Your example doesn&#8217;t work. I got my script to work but I get that line in my gateway file (where echo $server-&gt;handle(); is):<br />
AppendToGatewayUrl+?PHPSESSID=3fd770e188676605437223ab67c65370</p>
<p>Is that normal?</p>
<p>Thanks for your work!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: nielsenx</title>
		<link>http://wadearnold.com/blog/flash/zend-amf-now-with-php-session-support/comment-page-1#comment-2385</link>
		<dc:creator>nielsenx</dc:creator>
		<pubDate>Sat, 02 May 2009 18:28:22 +0000</pubDate>
		<guid isPermaLink="false">http://wadearnold.com/blog/?p=182#comment-2385</guid>
		<description>I tried creating the same example you have using flash instead of flex and I&#039;m getting consistent results with what I see in your example, the number is never updated because a new session ID is given everytime the amf call is made, is there something I&#039;m missing?</description>
		<content:encoded><![CDATA[<p>I tried creating the same example you have using flash instead of flex and I&#8217;m getting consistent results with what I see in your example, the number is never updated because a new session ID is given everytime the amf call is made, is there something I&#8217;m missing?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: nielsenx</title>
		<link>http://wadearnold.com/blog/flash/zend-amf-now-with-php-session-support/comment-page-1#comment-2364</link>
		<dc:creator>nielsenx</dc:creator>
		<pubDate>Fri, 01 May 2009 02:45:10 +0000</pubDate>
		<guid isPermaLink="false">http://wadearnold.com/blog/?p=182#comment-2364</guid>
		<description>The session example thing isn&#039;t working for me, it never gets incremented, I&#039;m using safari on mac but I don&#039;t think that should be a reason.  Also I have a flash site using ZF to authenticate users and store a session and I can&#039;t seem to keep that session data between flash amf calls, it doesn&#039;t know that Zend_Auth is already set.</description>
		<content:encoded><![CDATA[<p>The session example thing isn&#8217;t working for me, it never gets incremented, I&#8217;m using safari on mac but I don&#8217;t think that should be a reason.  Also I have a flash site using ZF to authenticate users and store a session and I can&#8217;t seem to keep that session data between flash amf calls, it doesn&#8217;t know that Zend_Auth is already set.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: roman</title>
		<link>http://wadearnold.com/blog/flash/zend-amf-now-with-php-session-support/comment-page-1#comment-2332</link>
		<dc:creator>roman</dc:creator>
		<pubDate>Fri, 24 Apr 2009 11:43:19 +0000</pubDate>
		<guid isPermaLink="false">http://wadearnold.com/blog/?p=182#comment-2332</guid>
		<description>Hi, I created small test application using Zend_Auth and Zend_ACL but had some troubles with it. Finnaly looked over Zend_Amf_Server code. (ZF is v1.7.8). I&#039;m wondering why Zend_Amf_Server code uses php session handling function directly instead of Zend_Session and Zend_Session_Namespace (what about session validators and all &quot;cool&quot; staff of Zend_Session?!)

look at handle method starting at line 380. is it secure?!

 if ($this-&gt;isSession()) {
             // Check if a session is being sent from the amf call
             if (isset($_COOKIE[$this-&gt;_sessionName])) {
                 session_id($_COOKIE[$this-&gt;_sessionName]);
             }
        }

look at line 102
protected $_sessionName = &#039;PHPSESSID&#039;; 

and there is no no setter (or configuration option) to change this value. the only solution is to extend Zemd_Amf_Server with override. why?!

now look at line 96
protected $_sesionNamespace = &#039;zend_amf&#039;;

and than look at setSession method. i&#039;m bit confused why Zend_Session_Namespace is instantiated here?! to call session_start() indirectly trought Zend_Session::start()?! but, as you can see, Zend_Session and Zend_Session_Namespace isn&#039;t used by the rest of server code. so, we have to stay with plain php session handling function or use Zend_Session_*. don&#039;t mix it!</description>
		<content:encoded><![CDATA[<p>Hi, I created small test application using Zend_Auth and Zend_ACL but had some troubles with it. Finnaly looked over Zend_Amf_Server code. (ZF is v1.7.8). I&#8217;m wondering why Zend_Amf_Server code uses php session handling function directly instead of Zend_Session and Zend_Session_Namespace (what about session validators and all &#8220;cool&#8221; staff of Zend_Session?!)</p>
<p>look at handle method starting at line 380. is it secure?!</p>
<p> if ($this-&gt;isSession()) {<br />
             // Check if a session is being sent from the amf call<br />
             if (isset($_COOKIE[$this-&gt;_sessionName])) {<br />
                 session_id($_COOKIE[$this-&gt;_sessionName]);<br />
             }<br />
        }</p>
<p>look at line 102<br />
protected $_sessionName = &#8216;PHPSESSID&#8217;; </p>
<p>and there is no no setter (or configuration option) to change this value. the only solution is to extend Zemd_Amf_Server with override. why?!</p>
<p>now look at line 96<br />
protected $_sesionNamespace = &#8216;zend_amf&#8217;;</p>
<p>and than look at setSession method. i&#8217;m bit confused why Zend_Session_Namespace is instantiated here?! to call session_start() indirectly trought Zend_Session::start()?! but, as you can see, Zend_Session and Zend_Session_Namespace isn&#8217;t used by the rest of server code. so, we have to stay with plain php session handling function or use Zend_Session_*. don&#8217;t mix it!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mike</title>
		<link>http://wadearnold.com/blog/flash/zend-amf-now-with-php-session-support/comment-page-1#comment-1774</link>
		<dc:creator>Mike</dc:creator>
		<pubDate>Tue, 31 Mar 2009 21:47:09 +0000</pubDate>
		<guid isPermaLink="false">http://wadearnold.com/blog/?p=182#comment-1774</guid>
		<description>I wanted to add a quick update to what the cause of my problem was:
Running on Ubuntu 8.10, I had different versions of ZF installed in multiple locations, some belonged to the old installation of ZendStudio 6.1.0, some to the new installation of ZS 6.1.1 and some standalone versions I had for testing.

For some reason PHP was looking at multiple directories, and not choosing the local installation of ZF under /library/Zend. After deleting all the additional ZF instances everything started to work as expected.

-Mike</description>
		<content:encoded><![CDATA[<p>I wanted to add a quick update to what the cause of my problem was:<br />
Running on Ubuntu 8.10, I had different versions of ZF installed in multiple locations, some belonged to the old installation of ZendStudio 6.1.0, some to the new installation of ZS 6.1.1 and some standalone versions I had for testing.</p>
<p>For some reason PHP was looking at multiple directories, and not choosing the local installation of ZF under /library/Zend. After deleting all the additional ZF instances everything started to work as expected.</p>
<p>-Mike</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: wadearnold</title>
		<link>http://wadearnold.com/blog/flash/zend-amf-now-with-php-session-support/comment-page-1#comment-1656</link>
		<dc:creator>wadearnold</dc:creator>
		<pubDate>Tue, 24 Mar 2009 05:44:54 +0000</pubDate>
		<guid isPermaLink="false">http://wadearnold.com/blog/?p=182#comment-1656</guid>
		<description>&lt;a href=&quot;#comment-1626&quot; rel=&quot;nofollow&quot;&gt;@Mike&lt;/a&gt; &lt;a href=&quot;#comment-1626&quot; rel=&quot;nofollow&quot;&gt;@Conor&lt;/a&gt; are you using the code from the trunk? I just migrated the code into the next 1.7 release. Mike i fired you an email.</description>
		<content:encoded><![CDATA[<p><a href="#comment-1626" rel="nofollow">@Mike</a> <a href="#comment-1626" rel="nofollow">@Conor</a> are you using the code from the trunk? I just migrated the code into the next 1.7 release. Mike i fired you an email.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: wadearnold</title>
		<link>http://wadearnold.com/blog/flash/zend-amf-now-with-php-session-support/comment-page-1#comment-1655</link>
		<dc:creator>wadearnold</dc:creator>
		<pubDate>Tue, 24 Mar 2009 05:43:36 +0000</pubDate>
		<guid isPermaLink="false">http://wadearnold.com/blog/?p=182#comment-1655</guid>
		<description>&lt;a href=&quot;#comment-1497&quot; rel=&quot;nofollow&quot;&gt;@conor&lt;/a&gt; 
your bootstrap file seems to say:
setSession();
and not
$server-&gt;setSession();</description>
		<content:encoded><![CDATA[<p><a href="#comment-1497" rel="nofollow">@conor</a><br />
your bootstrap file seems to say:<br />
setSession();<br />
and not<br />
$server-&gt;setSession();</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mike</title>
		<link>http://wadearnold.com/blog/flash/zend-amf-now-with-php-session-support/comment-page-1#comment-1626</link>
		<dc:creator>Mike</dc:creator>
		<pubDate>Sun, 22 Mar 2009 00:27:53 +0000</pubDate>
		<guid isPermaLink="false">http://wadearnold.com/blog/?p=182#comment-1626</guid>
		<description>Again, despite the fact that I have updated the ZEND_AMF Server class with the code from the SVN repositor as mentioned in the article, I still get the same annoying &quot;Fatal error: Call to undefined method Zend_Amf_Server::isSession() in /var/web/htdocs/core/application/default/controllers/ServicesController.php on line 84&quot; error.

This has been holding my development hostage for over a week now, and is getting serious frustrating. Can anyone throw me a bone on this one?</description>
		<content:encoded><![CDATA[<p>Again, despite the fact that I have updated the ZEND_AMF Server class with the code from the SVN repositor as mentioned in the article, I still get the same annoying &#8220;Fatal error: Call to undefined method Zend_Amf_Server::isSession() in /var/web/htdocs/core/application/default/controllers/ServicesController.php on line 84&#8243; error.</p>
<p>This has been holding my development hostage for over a week now, and is getting serious frustrating. Can anyone throw me a bone on this one?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mike</title>
		<link>http://wadearnold.com/blog/flash/zend-amf-now-with-php-session-support/comment-page-1#comment-1536</link>
		<dc:creator>Mike</dc:creator>
		<pubDate>Wed, 11 Mar 2009 23:56:48 +0000</pubDate>
		<guid isPermaLink="false">http://wadearnold.com/blog/?p=182#comment-1536</guid>
		<description>I&#039;m having the same issue as conor. How can I resolve this?</description>
		<content:encoded><![CDATA[<p>I&#8217;m having the same issue as conor. How can I resolve this?</p>
]]></content:encoded>
	</item>
</channel>
</rss>
