I have a problem with a flash banner on top of my site that keeps reloading at every new page. I'm tryinog to make it so that it doesn't keep reloading entirely. So far I split the flash into two parts and I'm trying to use php sessions to solve the problem. However, it doesn't seem to be working. No errors are displayed nor anything in the log. If someone could have a look at it and let me know if they see anything wrong it would be really helpful. Thanks.
This is my code-
<?php
if ((isset($_SESSION['new_user'])) && ($_SESSION['visited'] === true)) {
?>
<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0" width="510" height="205">
<param name="movie" value="flash/cougar1_re.swf">
<param name="quality" value="high">
<embed src="flash/cougar1_re.swf" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="510" height="205"></embed>
</object>
<?php
} else {
?>
<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0" width="510" height="205">
<param name="movie" value="flash/cougar1_.swf">
<param name="quality" value="high">
<embed src="flash/cougar1_.swf" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="510" height="205"></embed>
</object>
<?php
$_SESSION['new_user'] = 'true';
}
?>