← All tasks
🧮
Intermediate

Write Session Regeneration After Login

⏱ 3 min ⭐ 90 XP 🔁 3 attempts allowed

What you'll do

Write the PHP expression that regenerates the session ID immediately after a successful login.

Scenario

A previous implementation kept the same pre-login session ID after authentication, enabling session fixation attacks.

Ready to try it?

Create a free account and subscribe to take "Write Session Regeneration After Login". Earn 90 XP and track your internship progress.

Already have an account? Sign in