add and check indexDirs in Cookie meta (#3372)