Cookies are automatically passed by the browser along with your http request
to the server so sessions will work as normal in Flash (when using Flash
embedded in a web page or even when viewing a swf in the browser??).
On 8/19/06, James Marsden <[EMAIL PROTECTED]> wrote:
Hey,
You request and write the session variables to and from a PHP script via
LoadVars.
There's no inbuilt/prescribed method for managing and interacting with
sessions using Flash (as far as I know), so you just need to have some
basic class/function templates to talk between Flash and PHP.
HTH,
James
james wrote:
> Hi
>
> I have searched everywhere for a general tutorial on how to handle PHP
> sessions with Flash.
>
> I have built lots of web applications that use HTML/PHP using
> sessions, in that situation session_id is automatically sent with the
> POST data.
>
> How is it done in flash. I have googled 'session_id actionscript as2'
> but can't find a general explanation of how sessions are handled in
> as2/flash.
>
> In my application I just want to build a layer of actionscript objects
> which automatically handles sessions which I can reuse in other flash
> applications so I just need a general explanation.
>
> can anyone provide a link, or just a few sentences that say something
> like 'when using sessions do getURL("checkout.php", "", "POST",
> "SESSION");'.... come on guys/girls!!! it must be quite easy otherwise
> there would be tutorials all over the web!!! What am I missing!!!
>
> Please help!
>
> James _______________________________________________
> [email protected]
> To change your subscription options or search the archive:
> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
>
> Brought to you by Fig Leaf Software
> Premier Authorized Adobe Consulting and Training
> http://www.figleaf.com
> http://training.figleaf.com
>
_______________________________________________
[email protected]
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com
--
My home page http://jamiep.org
Phone no : +44 20 7558 8136 or +91 93 18 636 991
Skype Name : jamiepratt
_______________________________________________
[email protected]
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com