WP_Session_Tokens::is_still_valid

Advertisement

Summery Summery

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

Syntax Syntax

WP_Session_Tokens::is_still_valid( array $session )

Parameters Parameters

$session

(Required) Session to check.

Return Return

(bool) Whether session is valid.

Source Source

File: wp-includes/class-wp-session-tokens.php

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

Advertisement

Changelog Changelog

Changelog
Version Description
4.0.0 Introduced.

Advertisement

Leave a Reply