add log in set_cookie