views:

4103

answers:

2

I'm building a Flex widget for a private vBulletin site, and the Flex widget needs to access an XML file on the vBulletin server in order to display data.

For security reasons, the XML URL will need to have the value in the bbsessionhash cookie passed along in the URL request from Flex. The Flex widget will be embedded in the private area that the user has logged into, so the Flex request will be coming from the same website the cookie is from.

Is there any way to access the cookies directly within Flex? I would prefer not to use ExternalInterface to grab the cookie data from JavaScript, as it could get a little messy (the templates are developed by a completely different dev team).

+6  A: 

I have never tried this, but this library might just do the trick.

David Hanak
That is perfect, interestingly enough it actually uses ExternalInterface to write its own cookie-reading/writing JavaScript functions to the wrapper document. But hey, as long as the JS doesn't have to be embedded on the page itself it's good by me! Thanks!
Jarin Udom
+1  A: 

I wrote something similar, but it's not packaged like the library.

metric152