<?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>Tue, 17 Jan 2012 17:17:39 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
	<item>
		<title>By: Zend AMF &#124; PHP - Flashforum</title>
		<link>http://wadearnold.com/blog/flash/zend-amf-now-with-php-session-support/comment-page-1#comment-16955</link>
		<dc:creator>Zend AMF &#124; PHP - Flashforum</dc:creator>
		<pubDate>Tue, 03 Aug 2010 14:55:31 +0000</pubDate>
		<guid isPermaLink="false">http://wadearnold.com/blog/?p=182#comment-16955</guid>
		<description>[...] Wade Arnold Zend Amf now with php session support [...]</description>
		<content:encoded><![CDATA[<p>[...] Wade Arnold Zend Amf now with php session support [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: sohail</title>
		<link>http://wadearnold.com/blog/flash/zend-amf-now-with-php-session-support/comment-page-1#comment-12143</link>
		<dc:creator>sohail</dc:creator>
		<pubDate>Thu, 08 Apr 2010 10:39:02 +0000</pubDate>
		<guid isPermaLink="false">http://wadearnold.com/blog/?p=182#comment-12143</guid>
		<description>Hi Wade,

I read all your article it is really great. I run the test application and it is working. But i have a different scenario let me explain. User login in my simple php application. After login a swf file showing and perform some operation on button click using zend_amf and set a new session and i cannot access my old session parameters.. Please help me how i can access the session parameters when i was login.
Thanks in advance.

Sohail</description>
		<content:encoded><![CDATA[<p>Hi Wade,</p>
<p>I read all your article it is really great. I run the test application and it is working. But i have a different scenario let me explain. User login in my simple php application. After login a swf file showing and perform some operation on button click using zend_amf and set a new session and i cannot access my old session parameters.. Please help me how i can access the session parameters when i was login.<br />
Thanks in advance.</p>
<p>Sohail</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: sohail</title>
		<link>http://wadearnold.com/blog/flash/zend-amf-now-with-php-session-support/comment-page-1#comment-12142</link>
		<dc:creator>sohail</dc:creator>
		<pubDate>Thu, 08 Apr 2010 10:37:50 +0000</pubDate>
		<guid isPermaLink="false">http://wadearnold.com/blog/?p=182#comment-12142</guid>
		<description>Hi Wade,

I read all your article it is really great. I run the test application and it is working. But i have a different scenario let me explain. User login in my simple php application. After login a swf file showing and perform some operation on button click using zend_amf and set a new session and i cannot access my old session parameters.. Please help me.
Thanks in advance.

Sohail</description>
		<content:encoded><![CDATA[<p>Hi Wade,</p>
<p>I read all your article it is really great. I run the test application and it is working. But i have a different scenario let me explain. User login in my simple php application. After login a swf file showing and perform some operation on button click using zend_amf and set a new session and i cannot access my old session parameters.. Please help me.<br />
Thanks in advance.</p>
<p>Sohail</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: David</title>
		<link>http://wadearnold.com/blog/flash/zend-amf-now-with-php-session-support/comment-page-1#comment-12040</link>
		<dc:creator>David</dc:creator>
		<pubDate>Tue, 06 Apr 2010 00:37:31 +0000</pubDate>
		<guid isPermaLink="false">http://wadearnold.com/blog/?p=182#comment-12040</guid>
		<description>thx for tutorial, I&#039;m learning it but the last piece of code has disappeared...could u update.</description>
		<content:encoded><![CDATA[<p>thx for tutorial, I&#8217;m learning it but the last piece of code has disappeared&#8230;could u update.</p>
]]></content:encoded>
	</item>
	<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>
</channel>
</rss>
<!-- WP Super Cache is installed but broken. The path to wp-cache-phase1.php in wp-content/advanced-cache.php must be fixed! -->
