← All tasks
What you'll do
Write the PHP setcookie() call that sets a session cookie with HttpOnly, Secure, and SameSite protections.
Scenario
A session cookie is currently set with no protective flags, leaving it exposed to theft via XSS or network sniffing.
Ready to try it?
Create a free account and subscribe to take "Write a Secure Cookie Configuration". Earn 90 XP and track your internship progress.
Already have an account? Sign in