session_start(); session_register('access_count'); $access_count++; if ($access_count==1) { echo "the first time!"; } else { $message="accessed this page $access_count times."; }?> Access Count