Communication Security
HttpOnly Flag on Joomla Session Cookies Check
The HttpOnly flag prevents cookie access via JavaScript, protecting user sessions. Check its presence and learn how to enable it to strengthen Joomla session security.
What this test checks
This test checks whether Joomla session cookies are protected by the HttpOnly flag. This flag prevents cookie access via JavaScript, protecting against XSS attacks that aim to steal user sessions. Without it, an attacker can intercept session cookies and impersonate logged‑in users, including administrators.
Our recommendation
Enable the HttpOnly flag for session cookies in the Joomla global configuration by modifying session parameters in configuration.php or via system settings. Test the configuration by inspecting cookies in browser developer tools to verify the presence of the HttpOnly flag.
Security tests