Harden PHP session and cookie security flags
Session/cookie configuration should keep secure, httpOnly, and safe same-site posture for authenticated contexts.
#Metadata
#Why it matters
Weak cookie/session flags increase theft and replay risk across XSS, mixed transport, and cross-site request contexts.
#Remediation
Set `secure=true`, `httponly=true`, and a restrictive same-site policy for authentication cookies in production traffic.
#Repository path
The generated metadata points to critiq-rules/libs/rules/catalog/rules/php/php.security.insecure-session-or-cookie-config.rule.yaml.