1. Explain important attributes of cookies.
Cookies have attributes like name, value, expiry time, path, domain, and flags such as Secure and HttpOnly. The Secure flag ensures cookies are sent only over HTTPS, and HttpOnly prevents access from JavaScript for safety.