Understand how and when to use session_regenerate_id() in PHP. Prevent session fixation by generating new session IDs during privilege escalations.