if ( ( time() - $_SESSION[ 'time' ] ) < 1 ) { echo 'Часто кликаете'; exit(); } $_SESSION[ 'time' ] = time();