Are you trying to use sessions in your service methods? You can use
$_SESSION['whatever'] ='something'

"""AMFPHP automatically handles sessions for you and sends back a header
to Flash with a redirect to the gateway with the PHPSESSID appended
to the query, meaning cookieless sessions are supported.""""

What is appended to the gateway url is the SESSION_ID. with that ID it
restores session data per request, for you to use in $_SESSION['asdf']. So
if in some method you set $_SESSION['auth'] = 1. Then in another method you
can say if($_SESSION['auth']==1) blah blah blah..

As far as i'm aware this still works. I have not tested in amfphp 1.9..
Maybe i'll eat my words, I'm hungry anyway though.

-Aaron



On 3/4/07, Anthony Lee <[EMAIL PROTECTED]> wrote:

  > Can someone provide and example of how to use AMFPHP with sessions.
> I can't seem to get it to work.

Ditto. Sessions are referenced all over the place but I couldn't find
a working example.

tonio

Reply via email to