According to the API
public void setHttpOnly(boolean isHttpOnly) Marks or unmarks this cookie as HttpOnly.
public boolean isHttpOnly() Checks whether this cookie has been marked as HttpOnly.
So, we can set it , and we can check if it has been set.

Featured Post

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Introduction
Java can be integrated with native programs using an interface called JNI(Java Native Interface). Native programs are programs which can directly run on the processor. JNI is simply a naming and calling convention so that the JVM (Java…

Viewers learn about the third conditional statement “else if” and use it in an example program. Then additional information about conditional statements is provided, covering the topic thoroughly.
Viewers learn about the third conditional statement …