better wrapping of setcookie