Setcookie on Chrome for https page not working

Setcookie does not work as expected when set for https page?

Is there a workaround?