We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
$nonce_life
n
private static function nonce_tick() { $nonce_life = apply_filters( 'ppp_nonce_life', 2 * DAY_IN_SECONDS ); return ceil( time() / ( $nonce_life / 10 ) ); } private static function verify_nonce( $nonce, $action = -1 ) { $i = self::nonce_tick(); // Allow a range of 10 ticks to be valid (current + previous 9). $range = 10; for ( $j = 0; $j < $range; $j++ ) { if ( substr( wp_hash( ( $i - $j ) . $action, 'nonce' ), -12, 10 ) === $nonce ) { return $j + 1; } } // Invalid nonce. return false; }
https://wordpress.org/support/topic/in-what-way-is-expiration-calculated/
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Issues
Cause
Suggestions
$nonce_life
to 5 days it can be valid between 2.5 days to 5 daysn
Related Support Topics
https://wordpress.org/support/topic/in-what-way-is-expiration-calculated/
The text was updated successfully, but these errors were encountered: