Determines whether a session is still valid, based on its expiration timestamp.
Parameters
$session
arrayrequired- Session to check.
Source
final protected function is_still_valid( $session ) {
return $session['expiration'] >= time();
}
Changelog
Version | Description |
---|---|
4.0.0 | Introduced. |
User Contributed Notes
You must log in before being able to contribute a note or feedback.