Imaulle Posted March 5, 2011 Share Posted March 5, 2011 Hello, So I'm modifying an admin page that is mostly flash... the admin.swf is loaded through javascript/php and then the admin.swf will execute all of the other php scripts such as the login.php which checks to make sure the user has put in a correct password I've added some javascript to the index.php that will show a pop up if there are any important updates. that is working fine, however I'm trying to make it so the pop up will only show after the user has logged in (which is handled through the Flash page, but verified with login.php) Is there a way for me to set a session variable in the index.php to equal false, and then have the login.php set this variable to true after a php condition is met, and then have my javascript in index.php check for this session variable changing ? I'm trying to not modify any of the flash content and do everything through php/html/javascript if possible thanks! Quote Link to comment https://forums.phpfreaks.com/topic/229645-session-variables-php-flash-javascript/ Share on other sites More sharing options...
Imaulle Posted March 6, 2011 Author Share Posted March 6, 2011 I think I've confused everyone lol... Basically I need to create some type of variable in index.php and set it to false. then have the login.php that is loaded from the Flash page change this variable to true so that some javascript in the index.php can run? is this possible with javascript/ajax? thanks Quote Link to comment https://forums.phpfreaks.com/topic/229645-session-variables-php-flash-javascript/#findComment-1183665 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.