CMS Security
Magento Session Cookie Security Check
Magento session cookies must be protected by Secure and HttpOnly flags. Check their configuration to avoid session theft.
What this test checks
This test checks whether Magento session cookies are protected by the Secure (transmitted only over HTTPS) and HttpOnly (inaccessible via JavaScript) flags. Without these flags, cookies can be intercepted by attackers, especially via XSS attacks, allowing session and admin account theft.
Our recommendation
Enable Secure and HttpOnly flags for session cookies in Magento configuration (env.php). Ensure your site is on HTTPS. Test the configuration using browser developer tools.
Security tests
Read more
Sensitive Files