Php – Login using Flex and PHP but how to handle session

apache-flexauthenticationPHP

I have a Flex login page that uses HTTPService to communicate with server side php script. Once user's credential is verified, a session will be created and the login page will redirect to the main Flex page with that session info.

I'm not sure how to implement the session logic. Can someone shed some light on this? Some sample codes will be very helpful.

Thanks,