KRB5CCache
PHP Manual

KRB5CCache::isValid

(No version information available, might be only in CVS)

KRB5CCache::isValidChecks whether the credentials contained are still valid

Description

public bool KRB5CCache::isValid ([ int $seconds ] )

Checks whether the credentials contained are still valid or will be still valid after a given amount of time. Make sure to add a reasonable amount of time to compensate for clock skew.

Parameters

seconds

Number of seconds for which the credentials should stay valid.

Return Values

Returns true if the credentials are valid and false otherwise.

Examples

Example #1 KRB5CCache::isValid() example

<?php
$ccache
->isValid(); // checks whether the credential cache is still valid
$ccache->isValid(3600); // checks whether the credential cache is still valid in an hour
?>


KRB5CCache
PHP Manual