check cookie size and do not store if cookie is bigger than 4kb