Jump to content

session variables [php, flash, javascript]


Imaulle

Recommended Posts

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!

Link to comment
https://forums.phpfreaks.com/topic/229645-session-variables-php-flash-javascript/
Share on other sites

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

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.