<?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: Firefox, Flex URLRequest, and Sessions Issue</title>
	<atom:link href="http://www.thanksmister.com/index.php/archive/firefox-flex-urlrequest-and-sessions-issue/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.thanksmister.com/index.php/archive/firefox-flex-urlrequest-and-sessions-issue/</link>
	<description>Adobe Flex &#38; AIR Development</description>
	<lastBuildDate>Mon, 19 Jul 2010 17:26:43 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	
	<item>
		<title>By: Frank Metal</title>
		<link>http://www.thanksmister.com/index.php/archive/firefox-flex-urlrequest-and-sessions-issue/#comment-20004</link>
		<dc:creator>Frank Metal</dc:creator>
		<pubDate>Thu, 11 Feb 2010 23:44:39 +0000</pubDate>
		<guid isPermaLink="false">http://thanksmister.com/?p=59#comment-20004</guid>
		<description>Thanks, my problem was solved passing the session id back to php
And in php I do as follows:

session_id($_POST[&#039;sid&#039;]);
session_start();

Hope this help others</description>
		<content:encoded><![CDATA[<p>Thanks, my problem was solved passing the session id back to php<br />
And in php I do as follows:</p>
<p>session_id($_POST['sid']);<br />
session_start();</p>
<p>Hope this help others</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Artem Brigert</title>
		<link>http://www.thanksmister.com/index.php/archive/firefox-flex-urlrequest-and-sessions-issue/#comment-18563</link>
		<dc:creator>Artem Brigert</dc:creator>
		<pubDate>Wed, 09 Dec 2009 11:11:41 +0000</pubDate>
		<guid isPermaLink="false">http://thanksmister.com/?p=59#comment-18563</guid>
		<description>Great ! 
same problem has also Flash 10 + FF + MP3, request.url = urlVar+&quot;?rand=&quot;+Math.random();

Thank you!</description>
		<content:encoded><![CDATA[<p>Great !<br />
same problem has also Flash 10 + FF + MP3, request.url = urlVar+&#8221;?rand=&#8221;+Math.random();</p>
<p>Thank you!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: mankenler</title>
		<link>http://www.thanksmister.com/index.php/archive/firefox-flex-urlrequest-and-sessions-issue/#comment-15407</link>
		<dc:creator>mankenler</dc:creator>
		<pubDate>Thu, 20 Aug 2009 12:15:57 +0000</pubDate>
		<guid isPermaLink="false">http://thanksmister.com/?p=59#comment-15407</guid>
		<description>In Flash 9, the techniques described above (for the LoadVars class) do not work for any browser-provided header (e.g. User-Agent, Host and Referer), nor probably for many &quot;protected&quot; headers such as Content-Length. Still, headers like Expect can be sent, so some attacks (e.g. Example 1 above) are still effective with Flash 9.</description>
		<content:encoded><![CDATA[<p>In Flash 9, the techniques described above (for the LoadVars class) do not work for any browser-provided header (e.g. User-Agent, Host and Referer), nor probably for many &#8220;protected&#8221; headers such as Content-Length. Still, headers like Expect can be sent, so some attacks (e.g. Example 1 above) are still effective with Flash 9.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Perilin</title>
		<link>http://www.thanksmister.com/index.php/archive/firefox-flex-urlrequest-and-sessions-issue/#comment-14912</link>
		<dc:creator>Perilin</dc:creator>
		<pubDate>Tue, 04 Aug 2009 06:53:23 +0000</pubDate>
		<guid isPermaLink="false">http://thanksmister.com/?p=59#comment-14912</guid>
		<description>Yep, found that out too a bit later on. My project was for a closed LAN and it worked perfectly (I&#039;m guessing Flash player assumes local IPs are &quot;trusted&quot; or some such). I&#039;ve been trying to fool it into thinking any IP is trusted but no luck. My only other guess would be to develop some sort of &quot;proxy&quot; script using the session-id-on-url trick that then hands the data over to the &#039;s authentication and uploading system.

In the system I used (JAWS CMS) it gets the session ID exclusively from the cookie, so the GET trick won&#039;t work, ergo a proxy script is the best bet.

Best of luck!</description>
		<content:encoded><![CDATA[<p>Yep, found that out too a bit later on. My project was for a closed LAN and it worked perfectly (I&#8217;m guessing Flash player assumes local IPs are &#8220;trusted&#8221; or some such). I&#8217;ve been trying to fool it into thinking any IP is trusted but no luck. My only other guess would be to develop some sort of &#8220;proxy&#8221; script using the session-id-on-url trick that then hands the data over to the &#8216;s authentication and uploading system.</p>
<p>In the system I used (JAWS CMS) it gets the session ID exclusively from the cookie, so the GET trick won&#8217;t work, ergo a proxy script is the best bet.</p>
<p>Best of luck!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: HELP!</title>
		<link>http://www.thanksmister.com/index.php/archive/firefox-flex-urlrequest-and-sessions-issue/#comment-14894</link>
		<dc:creator>HELP!</dc:creator>
		<pubDate>Mon, 03 Aug 2009 20:20:19 +0000</pubDate>
		<guid isPermaLink="false">http://thanksmister.com/?p=59#comment-14894</guid>
		<description>So how did he get it to work?</description>
		<content:encoded><![CDATA[<p>So how did he get it to work?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: HELP!</title>
		<link>http://www.thanksmister.com/index.php/archive/firefox-flex-urlrequest-and-sessions-issue/#comment-14893</link>
		<dc:creator>HELP!</dc:creator>
		<pubDate>Mon, 03 Aug 2009 20:19:56 +0000</pubDate>
		<guid isPermaLink="false">http://thanksmister.com/?p=59#comment-14893</guid>
		<description>Looking at Perlin&#039;s comment&#039;s but perlexed:

That method produces:
ArgumentError: Error #2096: The HTTP request header Cookie cannot be set via ActionScript.
	at flash.net::URLStream/load()
	at flash.net::URLLoader/load()

Compiling using Flex Builder 3.

Why?

Have done some research and found that not allowing this is secruity feature in newer flash players:
From.. : &lt;a href=&quot;&quot; rel=&quot;nofollow&quot;&gt;http://www.securiteam.com/securityreviews/5KP0M1FJ5E.html
&lt;/a&gt;
&lt;cite&gt;
In Flash 9, the techniques described above (for the LoadVars class) do not work for any browser-provided header (e.g. User-Agent, Host and Referer), nor probably for many &quot;protected&quot; headers such as Content-Length. Still, headers like Expect can be sent, so some attacks (e.g. Example 1 above) are still effective with Flash 9.&lt;/cite&gt;</description>
		<content:encoded><![CDATA[<p>Looking at Perlin&#8217;s comment&#8217;s but perlexed:</p>
<p>That method produces:<br />
ArgumentError: Error #2096: The HTTP request header Cookie cannot be set via ActionScript.<br />
	at flash.net::URLStream/load()<br />
	at flash.net::URLLoader/load()</p>
<p>Compiling using Flex Builder 3.</p>
<p>Why?</p>
<p>Have done some research and found that not allowing this is secruity feature in newer flash players:<br />
From.. : <a href="" rel="nofollow"></a><a href="http://www.securiteam.com/securityreviews/5KP0M1FJ5E.html" rel="nofollow">http://www.securiteam.com/securityreviews/5KP0M1FJ5E.html</a></p>
<p><cite><br />
In Flash 9, the techniques described above (for the LoadVars class) do not work for any browser-provided header (e.g. User-Agent, Host and Referer), nor probably for many &#8220;protected&#8221; headers such as Content-Length. Still, headers like Expect can be sent, so some attacks (e.g. Example 1 above) are still effective with Flash 9.</cite></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: konyachat</title>
		<link>http://www.thanksmister.com/index.php/archive/firefox-flex-urlrequest-and-sessions-issue/#comment-14855</link>
		<dc:creator>konyachat</dc:creator>
		<pubDate>Sun, 02 Aug 2009 09:47:43 +0000</pubDate>
		<guid isPermaLink="false">http://thanksmister.com/?p=59#comment-14855</guid>
		<description>thankyou</description>
		<content:encoded><![CDATA[<p>thankyou</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Perilin</title>
		<link>http://www.thanksmister.com/index.php/archive/firefox-flex-urlrequest-and-sessions-issue/#comment-14067</link>
		<dc:creator>Perilin</dc:creator>
		<pubDate>Tue, 14 Jul 2009 11:23:49 +0000</pubDate>
		<guid isPermaLink="false">http://thanksmister.com/?p=59#comment-14067</guid>
		<description>I had the same problem, but appending the session id to the url didn&#039;t work.
Luckily AS3/Flex has the URLRequestHeader component, which works quite well.

To get the cookie from AS3:
[as]
public var cookieStr:String;		
public var cookieHeader:URLRequestHeader;
...
					ExternalInterface.call(&#039;eval&#039;,&#039;window.cookieStr = function () {return  document.cookie};&#039;)
cookieStr = ExternalInterface.call(&#039;cookieStr&#039;);  
cookieHeader = new URLRequestHeader(&quot;Cookie&quot;,cookieStr);
[/as]

Then when you&#039;re using your URLRequest object:
[as]
var urlRequest:URLRequest;
urlRequest = new URLRequest(... blah blah, url here, etc etc);
urlRequest.requestHeaders.push(cookieHeader);
[/as]

Hope this helps somebody :)</description>
		<content:encoded><![CDATA[<p>I had the same problem, but appending the session id to the url didn&#8217;t work.<br />
Luckily AS3/Flex has the URLRequestHeader component, which works quite well.</p>
<p>To get the cookie from AS3:</p>
<div class="codecolorer-container actionscript mac-classic" style="overflow:auto;white-space:nowrap;border: 1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br />2<br />3<br />4<br />5<br />6<br /></div></td><td><div class="actionscript codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #0066CC;">public</span> <span style="color: #000000; font-weight: bold;">var</span> cookieStr:<span style="color: #0066CC;">String</span>;&nbsp; &nbsp; &nbsp; &nbsp; <br />
<span style="color: #0066CC;">public</span> <span style="color: #000000; font-weight: bold;">var</span> cookieHeader:URLRequestHeader;<br />
...<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #006600;">ExternalInterface</span>.<span style="color: #0066CC;">call</span><span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">'eval'</span>,<span style="color: #ff0000;">'window.cookieStr = function () {return &nbsp;document.cookie};'</span><span style="color: #66cc66;">&#41;</span><br />
cookieStr = ExternalInterface.<span style="color: #0066CC;">call</span><span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">'cookieStr'</span><span style="color: #66cc66;">&#41;</span>; &nbsp;<br />
cookieHeader = <span style="color: #000000; font-weight: bold;">new</span> URLRequestHeader<span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">&quot;Cookie&quot;</span>,cookieStr<span style="color: #66cc66;">&#41;</span>;</div></td></tr></tbody></table></div>
<p>Then when you&#8217;re using your URLRequest object:</p>
<div class="codecolorer-container actionscript mac-classic" style="overflow:auto;white-space:nowrap;border: 1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br />2<br />3<br /></div></td><td><div class="actionscript codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #000000; font-weight: bold;">var</span> urlRequest:URLRequest;<br />
urlRequest = <span style="color: #000000; font-weight: bold;">new</span> URLRequest<span style="color: #66cc66;">&#40;</span>... <span style="color: #006600;">blah</span> blah, <span style="color: #0066CC;">url</span> here, etc etc<span style="color: #66cc66;">&#41;</span>;<br />
urlRequest.<span style="color: #006600;">requestHeaders</span>.<span style="color: #0066CC;">push</span><span style="color: #66cc66;">&#40;</span>cookieHeader<span style="color: #66cc66;">&#41;</span>;</div></td></tr></tbody></table></div>
<p>Hope this helps somebody <img src='http://www.thanksmister.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: dofus</title>
		<link>http://www.thanksmister.com/index.php/archive/firefox-flex-urlrequest-and-sessions-issue/#comment-13346</link>
		<dc:creator>dofus</dc:creator>
		<pubDate>Sat, 30 May 2009 05:26:28 +0000</pubDate>
		<guid isPermaLink="false">http://thanksmister.com/?p=59#comment-13346</guid>
		<description>thanks ^^</description>
		<content:encoded><![CDATA[<p>thanks ^^</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: sohpet</title>
		<link>http://www.thanksmister.com/index.php/archive/firefox-flex-urlrequest-and-sessions-issue/#comment-12373</link>
		<dc:creator>sohpet</dc:creator>
		<pubDate>Mon, 06 Apr 2009 05:16:02 +0000</pubDate>
		<guid isPermaLink="false">http://thanksmister.com/?p=59#comment-12373</guid>
		<description>Thanks</description>
		<content:encoded><![CDATA[<p>Thanks</p>
]]></content:encoded>
	</item>
</channel>
</rss>
