Home / CSE / Javascript - CS :: Discussion

Discussion :: Javascript - CS

  1. Which of the following is a boolean cookie attribute?

  2. A.

     bool

    B.

     secure

    C.

     lookup

    D.

     domain

    View Answer

    Workspace

    Answer : Option B

    Explanation :

    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.


Be The First To Comment