Jump to content

Recommended Posts

I'm running a regular PHP website. On the top of my page there is a flash object that plays music. You can toggle the music on or off with a flash button.

 

By default, the flash music plays on each page, so if you were to turn the music off and then go to another page, the music starts playing again.

 

I'm trying to set a cookie so that if a user turns the music off, when they go to another page, the flash player remembers whether to play or not.

 

I am feeding a variable to my flash object called 'playMusic' which accepts either true or false. However I'm not sure how to have flash send a cookie to php if the button is turned off.

 

Also I'm not sure how to set a cookie or if I should set a session for this. Any suggestions would be appreciated.

 

-foo

Link to comment
https://forums.phpfreaks.com/topic/201513-php-cookie-flash-question/
Share on other sites

Flash can't send a cookie to php because php is on the server, not the client computer, and if everyone fed the server cookies it would get fat and slow.

your options depend on how you are passing the variable to the Flash and how the variable is established before it is passed.

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.