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
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

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.