下面是cookie的构造函数。我正在使用restlets,不确定要将“path”和“domain”设置为什么。这些领域的目的是什么?另外,如果我将“secure”设置为“true”,是否意味着如果连接不是https,它不会传输cookie?
public CookieSetting(int version,
String name,
String value,
String path,
String domain,
String comment,
int maxAge,
boolean secure,
boolean accessRestricted);
//'secure' - Indicates if cookie should only be transmitted by secure means.
//'accessRestricted' - Indicates whether to restrict cookie access to untrusted parties.
// Currently this toggles the non-standard but widely supported HttpOnly cookie parameter.