unset domain for localhost by default and support options when setting cookie