Cookie secure (Attribute)

A Boolean attribute that defines whether a cookie is secure or not.

The secure attribute is a Boolean value that defines whether the secure protocol is required. If it is activated, then the cookie is only sent to a server when the secure https: protocol is used. To activate this facility simply add the secure attribute to the cookie.