Hi,
I haven't used php-nuke before so don't know if this is going to help, but in principle you can use sessions rather than cookies.
1.
At the top of the php page that displays the IFRAME, AFTER
the opening '<?php' tag but BEFORE anything else, put
the following:
// Declare a session variable.
session_register('num_visits');
// See if 'num_visits' hasn't already been registered yet
if(!isset($_SESSION['num_visits'])){
// if it hasn't, then this is the first time the page has been
// visited in this session ... which means that the users will
// have to close their browsers before being able to start
// again.
$SHOW_IFRAME = true;
} else {
// Been here before
$SHOW_IFRAME = false;
}
// Now set the variable for the next visit.
$_SESSION['num_visits'] = 1;
2.
Now you can use $SHOW_IFRAME anywhere further down the
page to show/not show the IFRAME ...
<?php
if($SHOW_IFRAME){
?>
<!- Put IFRAME HTML HERE -->
<?php
} else {
?>
<!- Put REPLACEMENT HTML FOR IFRAME HERE -->
<?php
}
?>
If this doesn't make any sense, have a look through the php-nuke manual for anything on sessions ... let us know how you
get on.