only set cookie for index.html