WP_Session_Tokens::is_still_valid( array $session )

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


Description Description


Parameters Parameters

$session

(array) (Required) Session to check.


Top ↑

Return Return

(bool) Whether session is valid.


Top ↑

Source Source

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

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

Top ↑

Changelog Changelog

Changelog
Version Description
4.0.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.