The proton-proton momentum correlation functions [C pp (q) Al and 22 Mg, the source size and emission time information were extracted from the C pp (q) data by assuming a Gaussian source profile in the correlation function calculation code (CRAB). The results indicated that the mechanism of two-proton emission from 23 Al was mainly sequential emission, while that of 22 Mg was mainly three-body simultaneous emission. By combining our earlier results of the two-proton relative momentum and the opening angle, it is pointed out that the mechanism of two-proton emission could be distinguished clearly.