public static function isValid($token) {
        // Get configuration
        $expiration = Config::get('security.anti_csrf.expiration', 18000);
        // Compute for token availablity
        $computed = microtime(true) - (double)Text::unlock($token, self::getKey());
        
        return $computed <= $expiration;
    }
public static function isValid($token) {
        // Get configuration
        $expiration = Config::get('security.anti_csrf.expiration', 18000);
        // Compute for token availablity
        $computed = microtime(true) - (double)Text::unlock($token, self::getKey());
        
        return $computed <= $expiration;
    }
public static function isValid ( $ token ) { // Get configuration $ expiration = Config :: get ( 'security.anti_csrf.expiration' , 18000 ) ; // Compute for token availablity $ computed = microtime ( true ) - ( double ) Text :: unlock ( $ token , self :: getKey ( ) ) ; return $ computed <= $ expiration ; }
Check Validity of Token

@access  public
@return  bool
Check Validity of Token