Part 6 - Header Login check, Login Script, and Session Variables
In this part of the tutorial series we create the main functionality behind our magic flash header file that senses whether a user is logged in or not. We use smart keyframing and layering in the flash file to pull it off easily. The ActionScript in the flash fla file(2 main AS 3.0 sections) call out to our 2 PHP scripts when they need to. That split second 2 way communication makes for a nice fluid system that breaks the molds and works in all major browsers tested so far... your only limitation is your imagination. This section mostly deals with checking to see if a user is logged in, and the login script itself if they are not. Flash calls out to PHP, PHP checks for session variables, and if they are set we show logged in stuff... if not we show the login form so that user can easily sign in to the web site.