ob_start,ob_clean
by webproger on 2020-02-09
<?php
if(   $_GET['time']
  AND $_SESSION['time']
  AND $_SESSION['bffr']
  AND $_GET['time']==$_SESSION['time']
  ) {
    echo $_SESSION['bffr'];
    exit();
}
ob_start();
?>
<a href='<?php echo '&time='.time(); ?>'>A</a>
<?php
$_SESSION['bffr'] = ob_get_contents();
ob_clean();
$_SESSION['time'] = $_GET['time'];
echo $_SESSION['bffr'];
?>