
Defined getSecure() and setDomain(boolean secureFlag) ?

public boolean getSecure()-Returns true if the browser is sending cookies only over a secure protocol, or false if the browser can send cookies using any protocol.
public void setDomain(String domainPattern)-Specifies the domain within which this cookie should be presented.
If you are facing any programming issue, such as compilation errors or not able to find the code you are looking for.
Ask your questions, our development team will try to give answers to your questions.