Jump to content

PHP Cookie / Flash Question


foochuck

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.

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.