session_start();

if (!isset($_SESSION['page_refresh'])) $_SESSION['page_refresh'] = 0;
else {
if ($_SESSION['page_refresh'] == 10) exit('10 Kere Yenilemişsiniz.');
else $_SESSION['page_refresh'] += 1;
}

echo 'Yenileme Sayısı : '.$_SESSION['page_refresh'];
?>