WordPress at a glance
function is not described

WP_Session_Tokens::is_still_valid() protected WP 4.0.0

Determines whether a session is still valid, based on its expiration timestamp.

{} It's a method of the class: WP_Session_Tokens{}

No Hooks.

Return

true/false. Whether session is valid.

Usage

// protected - for code of main (parent) or child class
$result = $this->is_still_valid( $session );
$session(array) (required)
Session to check.

Changelog

Since 4.0.0 Introduced.

Code of WP_Session_Tokens::is_still_valid() WP 5.5.1

<?php
final protected function is_still_valid( $session ) {
	return $session['expiration'] >= time();
}