Update inline docs and add cookie constants to setcookie(). See #1257.