function getExpiresIn($now = null)
    {
        if ($now == null) {
            $now = time();
        }

        return max(0, $this->issued + $this->lifetime - $now);
    }
function getExpiresIn($now = null)
    {
        if ($now == null) {
            $now = time();
        }

        return max(0, $this->issued + $this->lifetime - $now);
    }
function getExpiresIn ( $ now = null ) { if ( $ now == null ) { $ now = time ( ) ; } return max ( 0 , $ this -> issued + $ this -> lifetime - $ now ) ; }
This returns the number of seconds this association is still
valid for, or 0 if the association is no longer valid.

@param int|null $now
@return int $seconds The number of seconds this association
is still valid for, or 0 if the association is no longer valid.
This returns the number of seconds this association is still valid for or 0 if the association is no longer valid .