public function verify($nonce, $action)
    {
        $value = $this->Encryption->decryptSecureCookie($nonce);

        if(!$value)
            return false;

        if(strcmp($value, $action) === 0)
            return true;

        return false;
    }
public function verify($nonce, $action)
    {
        $value = $this->Encryption->decryptSecureCookie($nonce);

        if(!$value)
            return false;

        if(strcmp($value, $action) === 0)
            return true;

        return false;
    }
public function verify ( $ nonce , $ action ) { $ value = $ this -> Encryption -> decryptSecureCookie ( $ nonce ) ; if ( ! $ value ) return false ; if ( strcmp ( $ value , $ action ) === 0 ) return true ; return false ; }
Verifies the validity of a nonce against the supplied action.

$nonceAcceptableTimePeriods nonce checks are performed,
one for the current $nonceTimePeriod period and one for each previous $nonceTimePeriod period.
If any time period nonce matches, then the nonce is valid.

@param string $nonce  Full nonce string supplied by the request
@param string $action Arbitrary string action to verify nonce against

@return int Time period nonce was found in (ie. 1, 2, etc.) or false if not valid
Verifies the validity of a nonce against the supplied action .