Merge pull request #1298 from zivyuan/patch-1

Cookie $index should start with a prefix.