[Facebooker-talk] Flex, facebooker, and sessions not being maintained

Aaron Nemoyten swivelmaster at yahoo.com
Mon Feb 9 16:12:43 EST 2009


Brian,

Chances are that the problem is a little weirder than you think.

All calls that Flex makes should seem to originate from the same page the app is embedded in.  So if you're talking about the session being stored in the cookies, then you're relying on the browser's cookie policy to get it right for you.

Is this what you mean by 'session' - the Rails cookie-based session data?

I can give you some pointers on how to make it work correctly if that's what's happening.  (Hint:  Don't rely on cookies at all.)

-Aaron




________________________________
From: Brian Culler <brian at brianculler.com>
To: facebooker-talk at rubyforge.org
Sent: Monday, February 9, 2009 8:47:38 AM
Subject: [Facebooker-talk] Flex, facebooker, and sessions not being maintained

I have a Flex based SWF being loaded with FBML into my facebook application.   When the application is initially loaded and the SWF is served up, a rails session is created.  At that request, I have a full facebooker session object and everything is fine.

However, on any subsequent *flex* requests back to our API (using httpservice), it doesn't maintain that initial session setup when the application first loaded.  It creates a new session, and the fb_sig parameters are no where to be found.  

If I do a full browser refresh of the page though, it goes back and uses that initial session that was created when the app first loaded.  It would appear that the browser is working with rails correctly to maintain the session, but since Flex doesn't send http calls through the browser that way, it gets a new session any time it makes a call by itself.  

Any ideas on how to go about making the Flex app be able to talk back to the rails app and use the same initial session that was created upon loading the app?



      
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://rubyforge.org/pipermail/facebooker-talk/attachments/20090209/a96db456/attachment.html>


More information about the Facebooker-talk mailing list