Secure, HttpOnly, SameSite: Cookie Security Flags Explained
Secure, HttpOnly and SameSite are three attributes on the Set-Cookie header that stop session hijacking over HTTP, cookie theft via XSS, and cross-site request forgery. Here is what each one does and how to set them in PHP, WordPress, Express, Django, Rails and nginx.