Vidyalelo
JavaScript · Q138

Document Object Model And Event Handling

Programming · JavaScript · question 138

Q138

Which of the following is a boolean cookie attribute?

A.
bool
B.
secure
Answer
C.
lookup
D.
domain

Answer: Option B

Solution

Answer: Option B
Solution:
The final cookie attribute is a boolean attribute named secure that specifies how cookie values are transmitted over the network. By default, cookies are insecure, which means that they are transmitted over a normal, insecure HTTP connection. If a cookie is marked secure, however, it is transmitted only when the browser and server are connected via HTTPS or another secure protocol.