settimeout jquery
setTimeout(function(){ alert("Hello"); }, 3000);
settimeout jquery
setTimeout(function(){ alert("Hello"); }, 3000);
javascript set timeout
setTimeout(function(){
console.log("hello");
}, 3000); //wait for atleast 3 seconds before console logging
php set session timeout
//Ending a php session after 30 minutes of inactivity
$minutesBeforeSessionExpire=30;
if (isset($_SESSION['LAST_ACTIVITY']) && (time() - $_SESSION['LAST_ACTIVITY'] > ($minutesBeforeSessionExpire*60))) {
session_unset(); // unset $_SESSION
session_destroy(); // destroy session data
}
$_SESSION['LAST_ACTIVITY'] = time(); // update last activity
add set time out in jquery
$(".submit_wide").click(function () {
$(this).val('Please wait..');
$(this).attr('disabled', true);
setTimeout(function() {
$(this).attr('disabled', false);
$(this).val('Submit');
}, 2000);
});
javascript settimeout
window.setTimeout(()=>{
console.log('1 second passed!');
}, 1000);
Copyright © 2021 Codeinu
Forgot your account's password or having trouble logging into your Account? Don't worry, we'll help you to get back your account. Enter your email address and we'll send you a recovery link to reset your password. If you are experiencing problems resetting your password contact us