Issue
I am using a CookieSerializer and I am trying to set HostOnly to this cookie but I can't find anything related to this.
The column HostOnly I can see just in Firefox inspect. Not available in Safari or in Google Chrome.
This is how my cookie is defined:
DefaultCookieSerializer serializer = new DefaultCookieSerializer();
serializer.setCookieName("M_SESSION");
serializer.setCookiePath("/");
serializer.setDomainNamePattern("^((\\w+\\.)+\\w+\\.[a-z]+)$");
serializer.setUseHttpOnlyCookie(true);
return serializer;
Any advice how to do this?
Solution
In your case removing "serializer.setDomainNamePattern("^((\w+\.)+\w+\.[a-z]+)$");" should solve your issue.
Answered By - Buda Sergiu Flavius
Answer Checked By - Candace Johnson (JavaFixing Volunteer)